BattlehubCode / RTE_Docs

This is a repository for Runtime Editor documentation, discussion and tracking features and issues.
https://assetstore.unity.com/packages/tools/modeling/runtime-editor-64806
11 stars 0 forks source link

Material reverts to default params when saving scene #131

Closed snorulf closed 1 week ago

snorulf commented 3 weeks ago
  1. Add cube with custom material assigned to scene runtime editor scene root with ExposeToEditor component. Make the basecolor blue for example.
  2. Play scene from Unity Editor, the scene layout should have as Save/Load cmd exposed as in example scene 31.
  3. Save scene in RTEditor.
  4. Material params on cube revert to default values. It is expected that the material would look the same as before.

Using RTEditor URP Support Tested in Runtime Editor 4.4.3

BattlehubCode commented 1 week ago

Hi, click Tools > Runtime Asset Database > Create Shader Profiles from main menu.

This command will gather properties of urp materials required to save them

Screenshot 2024-10-22 at 11 21 04 PM

Another option is to add that material to the list of external assets.

Screenshot 2024-10-22 at 11 28 23 PM