C# Class LayerExtensions, GameStartUP

Usefull methods for Layermask
Afficher le fichier Open project: badawe/GameStartUP Class Usage Examples

Méthodes publiques

Méthode Description
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

Method Details

AddToMask() public static méthode

Add the specific layers to the layer mask
public static AddToMask ( this original ) : LayerMask
original this
Résultat LayerMask

IsInLayerMask() public static méthode

Check if the game object fit the layer targetMask
public static IsInLayerMask ( this targetGameObject, LayerMask targetMask ) : bool
targetGameObject this
targetMask LayerMask
Résultat bool

LayerNumbersToMask() public static méthode

Generate one layermask based on the layers number
public static LayerNumbersToMask ( ) : LayerMask
Résultat LayerMask

NamesToMask() public static méthode

public static NamesToMask ( ) : LayerMask
Résultat LayerMask