Skip to content

Illegal access error #21

Description

@VISTALL
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)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions