sizeInBytes property

int? get sizeInBytes

The reflected total size of a shader's uniform struct by name.

Returns null if the shader does not contain a uniform struct with the given name.

Implementation

int? get sizeInBytes {
  int size = shader._getUniformStructSize(uniformName);
  return size < 0 ? null : size;
}