It doesn't work

it gives many errors:-
Unable to use a named GUIStyle without a current skin. Most likely you need to move your GUIStyle initialization code to OnGUI
UnityEditor.EditorApplication:Internal_CallHierarchyHasChanged ()
ArgumentException: You can only call GUI functions from inside OnGUI.
UnityEngine.GUIUtility.CheckOnGUI () (at :0)
UnityEngine.GUI.get_skin () (at :0)
UnityEditor.ParticleSystemStyles…ctor () (at <7aeb7d7a52d04045b8a1c734633fa931>:0)
UnityEditor.ParticleSystemStyles.Get () (at <7aeb7d7a52d04045b8a1c734633fa931>:0)
UnityEditor.NoiseModuleUI.Init () (at <7aeb7d7a52d04045b8a1c734633fa931>:0)
UnityEditor.ModuleUI.Setup (UnityEditor.ParticleSystemUI owner, UnityEditor.SerializedObject o, System.String displayName, UnityEditor.ModuleUI+VisibilityState defaultVisibilityState) (at <7aeb7d7a52d04045b8a1c734633fa931>:0)
UnityEditor.ModuleUI…ctor (UnityEditor.ParticleSystemUI owner, UnityEditor.SerializedObject o, System.String name, System.String displayName) (at <7aeb7d7a52d04045b8a1c734633fa931>:0)
UnityEditor.NoiseModuleUI…ctor (UnityEditor.ParticleSystemUI owner, UnityEditor.SerializedObject o, System.String displayName) (at <7aeb7d7a52d04045b8a1c734633fa931>:0)
UnityEditor.ParticleSystemUI.CreateUIModules (UnityEditor.ParticleSystemUI e, UnityEditor.SerializedObject so) (at <7aeb7d7a52d04045b8a1c734633fa931>:0)
UnityEditor.ParticleSystemUI.Init (UnityEditor.ParticleEffectUI owner, UnityEngine.ParticleSystem systems) (at <7aeb7d7a52d04045b8a1c734633fa931>:0)
UnityEditor.ParticleEffectUI.InitializeIfNeeded (System.Collections.Generic.IEnumerable`1[T] systems) (at <7aeb7d7a52d04045b8a1c734633fa931>:0)
UnityEditor.ParticleSystemInspector.Init (System.Boolean forceInit) (at <7aeb7d7a52d04045b8a1c734633fa931>:0)
UnityEditor.ParticleSystemInspector.HierarchyOrProjectWindowWasChanged () (at <7aeb7d7a52d04045b8a1c734633fa931>:0)
UnityEditor.EditorApplication.Internal_CallHierarchyHasChanged () (at <7aeb7d7a52d04045b8a1c734633fa931>:0)
NullReferenceException: Object reference not set to an instance of an object
UnityEditor.ParticleSystemUI.OnGUI (System.Single width, System.Boolean fixedWidth) (at <7aeb7d7a52d04045b8a1c734633fa931>:0)
UnityEditor.ParticleEffectUI.InspectorParticleSystemGUI () (at <7aeb7d7a52d04045b8a1c734633fa931>:0)
UnityEditor.ParticleEffectUI.OnGUI () (at <7aeb7d7a52d04045b8a1c734633fa931>:0)
UnityEditor.ParticleSystemInspector.OnInspectorGUI () (at <7aeb7d7a52d04045b8a1c734633fa931>:0)
UnityEditor.UIElements.InspectorElement+<>c__DisplayClass72_0.b__0 () (at <7aeb7d7a52d04045b8a1c734633fa931>:0)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&)
GUI Error: Invalid GUILayout state in view. Verify that all layout Begin/End calls match
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)

Hi,

What did you do in Unity? Without knowing what you did and see (apart from the error message), I’m afraid the error message does not make any sense to me.

After restarting the issue got solved.

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms