Skip to content

typeHasEditorRef 可能触发 StackOverflowException #639

@oOtroyOo

Description

@oOtroyOo

我在配置文件中使用了ExampleConfig.cs 中的示范的typeHasEditorRefdelegateHasEditorRef
例如在Gen的时候,进行到一个方法

public abstract class InstanceMonoBehavior<T> : MonoBehaviour where T : InstanceMonoBehavior<T>
    {
        private static T _instance;


        public static T GetInstance()
        {
            if (_instance == null)
            {
 ................

其中T GetInstance()就会触发
System.StackOverflowException: The requested operation caused a stack overflow

不仅这个方法,LitJson也有几个方法会出现报错。

我自己改了typeHasEditorRef能解决,可否在ExampleConfig.cs中在处理一下呢?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions