Skip to content
This repository has been archived by the owner on Mar 14, 2022. It is now read-only.

jamesdimick/UnityMaterialInstancedPropertiesEditor

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 

Unity Material Instanced Properties Editor

A generic editor for manipulating instanced properties of materials in Unity.

Screenshot of the editor in Unity

Unity Version

It was created in Unity 2018.3.0 but it should work fine in older versions (unsure how far back). Please submit a report if you find any issues.

Limitations

  • There is currently no way to tell between an instanced material property and a non-instanced material property on the C# side in Unity. This means that all properties are always included in this component. You must keep track yourself which properties are instanced in your shaders and only change those specific properties via this component. Changing non-instanced properties via this component yields undefined behaviour and can even cause performance issues if Unity decides to create new material instances behind the scenes.

  • This component also displays normally-hidden properties. Use caution when modifying these properties.

  • Some more advanced properties cannot be properly represented via this component due to limitations with accessing property info in the currently available Unity APIs.