Exemple #1
0
 public static S resolveAs_MaterialStateProperty <S>(S value, HashSet <MaterialState> states)
 {
     if (value is MaterialStateProperty <S> materialStateProperty)
     {
         MaterialStateProperty <S> property = materialStateProperty;
         return(property.resolve(states));
     }
     return(value);
 }
        public static ShapeBorder resolveAs <ShapeBorder>(ShapeBorder value, HashSet <MaterialState> states)
        {
            if (value is MaterialStateProperty <ShapeBorder> materialStateProperty)
            {
                MaterialStateProperty <ShapeBorder> property = materialStateProperty;
                return(property.resolve(states));
            }

            return(value);
        }
Exemple #3
0
        public static T resolveAs <T>(T value, HashSet <MaterialState> states)
        {
            if (value is MaterialStateProperty <T> materialStateProperty)
            {
                MaterialStateProperty <T> property = materialStateProperty;
                return(property.resolve(states));
            }

            return(value);
        }
Exemple #4
0
        public static Color resolveAs <Color>(Color value, HashSet <MaterialState> states)
        {
            if (value is MaterialStateProperty <Color> materialStateProperty)
            {
                MaterialStateProperty <Color> property = materialStateProperty;
                return(property.resolve(states));
            }

            return(value);
        }