C# Класс LayerExtensions, GameStartUP

Usefull methods for Layermask
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
AddToMask ( this original ) : LayerMask

Add the specific layers to the layer mask

IsInLayerMask ( this targetGameObject, LayerMask targetMask ) : bool

Check if the game object fit the layer targetMask

LayerNumbersToMask ( ) : LayerMask

Generate one layermask based on the layers number

NamesToMask ( ) : LayerMask

Описание методов

AddToMask() публичный статический Метод

Add the specific layers to the layer mask
public static AddToMask ( this original ) : LayerMask
original this
Результат LayerMask

IsInLayerMask() публичный статический Метод

Check if the game object fit the layer targetMask
public static IsInLayerMask ( this targetGameObject, LayerMask targetMask ) : bool
targetGameObject this
targetMask LayerMask
Результат bool

LayerNumbersToMask() публичный статический Метод

Generate one layermask based on the layers number
public static LayerNumbersToMask ( ) : LayerMask
Результат LayerMask

NamesToMask() публичный статический Метод

public static NamesToMask ( ) : LayerMask
Результат LayerMask