consulo / UnityEditorConsuloPlugin

Consulo plugin for UnityEditor
Apache License 2.0
18 stars 2 forks source link

Illegal access error #21

Open VISTALL opened 3 years ago

VISTALL commented 3 years ago
UnityException: get_dataPath is not allowed to be called from a MonoBehaviour constructor (or instance field initializer), call it in Awake or Start instead. Called from MonoBehaviour '***'.
See "Script Serialization" page in the Unity Manual for further details.
Consulo.Internal.UnityEditor.WebApiServer+<>c.<.cctor>b__3_2 (System.String condition, System.String stackTrace, UnityEngine.LogType type) (at Library/PackageCache/com.consulo.ide@2.2.0/Editor/Consulo/WebApiServer.cs:91)
UnityEngine.Application.CallLogCallback (System.String logString, System.String stackTrace, UnityEngine.LogType type, System.Boolean invokedOnMainThread) (at <e5b75411c8cd4bfaa9e760be20206f29>:0)
UnityEngine.Debug:Log(Object)