I am having a problem across multiple projects with Unity 6000.0.25f1 and PiXYZ 3.0.5. Whenever I create a Ruleset that references a local asset (for example a material) I get this issue when I restart the project and I can no longer open the Ruleset:
UnityException: GUIDToAssetPath_Internal is not allowed to be called during serialization, call it from OnEnable instead. Called from ScriptableObject ‘RuleSet’.
See “Script Serialization” page in the Unity Manual for further details.
UnityEditor.AssetDatabase.GUIDToAssetPath_Internal (UnityEditor.GUID guid) (at <9e3a60dbcacc4e77a9c6e1c14064183a>:0)
UnityEditor.AssetDatabase.GUIDToAssetPath (System.String guid) (at <9e3a60dbcacc4e77a9c6e1c14064183a>:0)
UnityEditor.PixyzPlugin4Unity.Actions.FieldInstanceSerializer.UnserializeAsset (System.String serializedValue, System.Type type) (at ./Library/PackageCache/com.unity.industry.toolkit/Editor/Actions/FieldInstanceSerializer.cs:46)
UnityEditor.PixyzPlugin4Unity.Actions.FieldInstanceSerializer.Unserialize (UnityEditor.PixyzPlugin4Unity.Actions.FieldInstance fieldInstance, System.Collections.Generic.Dictionary2[System.String,System.String]& properties, System.String path, System.Type type) (at ./Library/PackageCache/com.unity.industry.toolkit/Editor/Actions/FieldInstanceSerializer.cs:182) UnityEditor.PixyzPlugin4Unity.Actions.FieldInstance.DeserializeData (System.Collections.Generic.Dictionary
2[TKey,TValue] pairs) (at ./Library/PackageCache/com.unity.industry.toolkit/Editor/Actions/FieldInstance.cs:160)
UnityEditor.PixyzPlugin4Unity.RuleEngine.RuleBlock.DeserializeParameters () (at ./Library/PackageCache/com.unity.industry.toolkit/Editor/RuleEngine/RuleBlock.cs:88)
UnityEditor.PixyzPlugin4Unity.RuleEngine.RuleBlock.get_Action () (at ./Library/PackageCache/com.unity.industry.toolkit/Editor/RuleEngine/RuleBlock.cs:30)
UnityEditor.PixyzPlugin4Unity.RuleEngine.Rule.AddOnFieldInstanceChangedCallback (UnityEditor.PixyzPlugin4Unity.RuleEngine.RuleBlock block) (at ./Library/PackageCache/com.unity.industry.toolkit/Editor/RuleEngine/Rule.cs:132)
UnityEditor.PixyzPlugin4Unity.RuleEngine.Rule.OnAfterDeserialize () (at ./Library/PackageCache/com.unity.industry.toolkit/Editor/RuleEngine/Rule.cs:126)