Skip to content

JBehaviour Loop Failed #511

@manbaaa

Description

@manbaaa

在热更方法 RunGame 里动态创建JBehaviour,最开始创建的前几个的Loop方法不会执行。

需要打包环境测试,在JBehaviour.cs里屏蔽掉如下代码:

//编辑器下可视化
if (Application.isEditor)
{
var id = AddClassBind(gameObject, activeAfter, typeof(T));
var ret = (T)JBehaviours[id];
ret.Check();
return ret;
}

可以在Unity编辑器下重现,前提是FpsMonitor里的_backupFrames初始化为0;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions