+1
Fixed

Error when opening in Unity 5.4.0b22

Dennis V H 8 years ago updated by OnlyFals 8 years ago 4

Shader forge pane crashes when opening with the following errors:


get_skinIndex is not allowed to be called from a ScriptableObject constructor (or instance field initializer), call it in OnEnable instead. Called from ScriptableObject 'SF_Editor'.

See "Script Serialization" page in the Unity Manual for further details.
UnityEditor.EditorGUIUtility:get_isProSkin()
ShaderForge.SF_GUI:get_ProSkin()
ShaderForge.SF_GUI:SkinSuffix(String)
ShaderForge.SF_GUI:get_Icon()
ShaderForge.SF_Editor:.ctor()
UnityEditor.EditorWindow:GetWindow(Type)
ShaderForge.SF_Editor:Init(Shader)
ShaderForge.SF_Editor:InitEmpty()

GetAllAssetPaths is not allowed to be called from a ScriptableObject constructor (or instance field initializer), call it in OnEnable instead. Called from ScriptableObject 'SF_Editor'.

See "Script Serialization" page in the Unity Manual for further details.
UnityEditor.AssetDatabase:GetAllAssetPaths()
ShaderForge.SF_Resources:SearchForInternalResourcesPath(String&)
ShaderForge.SF_Resources:get_InternalResourcesPath()
ShaderForge.SF_Resources:LoadInterfaceIcon(String)
ShaderForge.SF_GUI:get_Icon()
ShaderForge.SF_Editor:.ctor()
UnityEditor.EditorWindow:GetWindow(Type)
ShaderForge.SF_Editor:Init(Shader)
ShaderForge.SF_Editor:InitEmpty()

UnityException: GetAllAssetPaths is not allowed to be called from a ScriptableObject constructor (or instance field initializer), call it in OnEnable instead. Called from ScriptableObject 'SF_Editor'.

See "Script Serialization" page in the Unity Manual for further details.
ShaderForge.SF_Resources.SearchForInternalResourcesPath (System.String& path)
ShaderForge.SF_Resources.get_InternalResourcesPath ()
ShaderForge.SF_Resources.LoadInterfaceIcon (System.String name)
ShaderForge.SF_GUI.get_Icon ()

ShaderForge.SF_Editor..ctor ()


INTERNAL_get_fogColor is not allowed to be called from a ScriptableObject constructor (or instance field initializer), call it in OnEnable instead. Called from ScriptableObject 'SFPSC_Blending'.

See "Script Serialization" page in the Unity Manual for further details.
UnityEngine.RenderSettings:get_fogColor()

ShaderForge.SFPSC_Blending:.ctor()

Answer

Answer
Fixed

This has been fixed in 1.27

Answer
Fixed

This has been fixed in 1.27

Just bought shaderforge and I'm still getting this error (1.27).

get_skinIndex is not allowed to be called from a ScriptableObject constructor (or instance field initializer), call it in OnEnable instead. Called from ScriptableObject 'SFN_Append'.

get_skinIndex is not allowed to be called from a ScriptableObject constructor (or instance field initializer), call it in OnEnable instead. Called from ScriptableObject 'SFN_ComponentMask'.

great! thanks, hope it gets released soon so I can stop alt-tabbing to create shaders :)

Not fixed, still in version v1.28