public static LayerMaskF FromNames(IEnumerable <string> layers) { LayerMaskF mask = new LayerMaskF(); foreach (string name in layers) { mask |= LayerMaskF.FromName(name); } return(mask); }
public static LayerMaskF FromNames(string name1, string name2, string name3, string name4) { return(LayerMaskF.FromName(name1) | LayerMaskF.FromName(name2) | LayerMaskF.FromName(name3) | LayerMaskF.FromName(name4)); }
public static LayerMaskF FromNames(string name1) { return(LayerMaskF.FromName(name1)); }
public bool Contains(string maskName) { return((this.Mask & LayerMaskF.FromName(maskName).Mask) != 0); }
public static LayerMaskF MaskFromNames(string name1, string name2, string name3) { return(LayerMaskF.FromNames(name1, name2, name3)); }
public static LayerMaskF MaskFromName(string name) { return(LayerMaskF.FromName(name)); }
public LayerMaskF Combine(LayerMaskF other) { return(LayerMaskF.Combine(this, other)); }
public static LayerMaskF Combine(LayerMaskF a, LayerMaskF b) { return(a | b); }