HasProperty

HasProperty(int)

public bool HasProperty(int nameID) ;

Description

Returns whether the PropertyBlock has a property value.

Parameters

Parameter Name Description
nameID Property name ID

Returns

Returns true if the property value is set.

Remarks

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

HasProperty(string)

public bool HasProperty(string name) ;

Description

Returns whether the PropertyBlock has a property value.

Parameters

Parameter Name Description
name Property name

Returns

Returns true if the property value is set.

Remarks

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