Instance Property

uniformType

The uniform object’s data type.

Declaration

@property(nonatomic, readonly) SKUniformType uniformType;

Discussion

A uniform object’s type is set to SKUniformTypeNone until the first time that the uniform variable’s value is set; this happens automatically if you use an initialization method that provides an initial type and value. Once the uniform object is given an initial value, its type changes to that value’s type and thereafter cannot be changed.

See Also

Reading Information About a Uniform

name

The uniform’s name.