Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

第一次激活隐藏的脚本组件,不会执行OnEnable #420

Closed
L-Fone opened this issue Oct 24, 2022 · 0 comments
Closed

第一次激活隐藏的脚本组件,不会执行OnEnable #420

L-Fone opened this issue Oct 24, 2022 · 0 comments

Comments

@L-Fone
Copy link
Collaborator

L-Fone commented Oct 24, 2022

当一个被隐藏的游戏物体,动态绑定一个脚本。在绑定脚本后,游戏物体第一次SetActive将不会走OnEnable函数。需要再次设置隐藏再激活才会走OnEnable

JasonXuDeveloper added a commit that referenced this issue Oct 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant