uniformType
The uniform object’s data type.
Declaration
var uniformType: SKUniformType { get }Discussion
A uniform object’s type is set to SKUniformType.none 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.