SetPropertyLock
Sets the lock state of a property for this material.
Read time 1 minuteLast updated 5 days ago
Definition
- Type: Method
- Namespace: UnityEngine
- Assembly: UnityEngine.CoreModule
SetPropertyLock(int, bool)
Sets the lock state of a property for this material.
public void SetPropertyLock(int nameID, bool value)
Parameters
Remarks
If a property is locked by the material, any Material Variant inheriting from this Material will be unable to change the value of the property. Note that this method is Editor-only.
Additional Resources: GetPropertyLock, Material.IsPropertyLockedByAncestor.
SetPropertyLock(string, bool)
Sets the lock state of a property for this material.
public void SetPropertyLock(string name, bool value)
Parameters
Remarks
If a property is locked by the material, any Material Variant inheriting from this Material will be unable to change the value of the property. Note that this method is Editor-only.
Additional Resources: GetPropertyLock, Material.IsPropertyLockedByAncestor.