UniformArray<T extends UniformType> class

An array of bindings to uniforms of the same type T. Access elements via [] and set them individually. Example:

void updateShader(ui.FragmentShader shader) {
  final ui.UniformArray<ui.UniformVec4Slot> colors = shader.getUniformVec4Array('uColorArray');
  colors[0].set(1.0, 0.0, 1.0, 0.3);
}

See also: FragmentShader.getUniformFloatArray - How UniformArray<Float> instances are acquired.

Properties

hashCode int
The hash code for this object.
no setterinherited
length int
The number of Uniforms in the UniformArray.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited
operator [](int index) → T
Access an element of the UniformArray.