コード例 #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);
 }
コード例 #2
0
        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);
        }
コード例 #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);
        }
コード例 #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);
        }