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

Lua环境下无法判断已经销毁的对象是否为null #38

Closed
Ginurx opened this issue May 16, 2015 · 1 comment
Closed

Lua环境下无法判断已经销毁的对象是否为null #38

Ginurx opened this issue May 16, 2015 · 1 comment

Comments

@Ginurx
Copy link

Ginurx commented May 16, 2015

一个GameObject 被Destroy 后, 由于LUA环境下 userdata ~= nil, 即使对象销毁也无法知晓;

如果要自己导出函数判断的话不如加到slua库里吧

@pangweiwei
Copy link
Owner

你可以直接调用obj.op_Equality(nil)

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

2 participants