C# 클래스 LayerExtensions, GameStartUP

Usefull methods for Layermask
파일 보기 프로젝트 열기: badawe/GameStartUP 1 사용 예제들

공개 메소드들

메소드 설명
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