public static LayerMask RemoveFromMask(this LayerMask original, params string[] layerNames) { LayerMask mask = ~original; return(~(mask | LayerMaskExtensions.NamesToMask(layerNames))); }
public static LayerMask Create(params int[] layerNumbers) { return(LayerMaskExtensions.LayerNumbersToMask(layerNumbers)); }
public static LayerMask AddToMask(this LayerMask original, params string[] layerNames) { return(original | LayerMaskExtensions.NamesToMask(layerNames)); }
public static LayerMask Create(params string[] layerNames) { return(LayerMaskExtensions.NamesToMask(layerNames)); }