HasProperty

public bool HasProperty(int nameID) ;

Returns whether the PropertyBlock has a property value.

Parameter Name Description
nameID Property name ID

Returns true if the property value is set.

If you change the MaterialPropertyBlock directly, it will not be reflected. Be sure to use the Set method of RendererPropertyBlock.

public bool HasProperty(string name) ;

Returns whether the PropertyBlock has a property value.

Parameter Name Description
name Property name

Returns true if the property value is set.

If you change the MaterialPropertyBlock directly, it will not be reflected. Be sure to use the Set method of RendererPropertyBlock.