Exemple #1
0
        public static LayerMaskF FromNames(IEnumerable <string> layers)
        {
            LayerMaskF mask = new LayerMaskF();

            foreach (string name in layers)
            {
                mask |= LayerMaskF.FromName(name);
            }

            return(mask);
        }
Exemple #2
0
 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));
 }
Exemple #3
0
 public static LayerMaskF FromNames(string name1)
 {
     return(LayerMaskF.FromName(name1));
 }
Exemple #4
0
 public bool Contains(string maskName)
 {
     return((this.Mask & LayerMaskF.FromName(maskName).Mask) != 0);
 }
Exemple #5
0
 public static LayerMaskF MaskFromNames(string name1, string name2, string name3)
 {
     return(LayerMaskF.FromNames(name1, name2, name3));
 }
Exemple #6
0
 public static LayerMaskF MaskFromName(string name)
 {
     return(LayerMaskF.FromName(name));
 }
Exemple #7
0
 public LayerMaskF Combine(LayerMaskF other)
 {
     return(LayerMaskF.Combine(this, other));
 }
Exemple #8
0
 public static LayerMaskF Combine(LayerMaskF a, LayerMaskF b)
 {
     return(a | b);
 }