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脚本吗? #134

Closed
hxhb opened this issue Mar 23, 2020 · 1 comment
Closed

能够为同一类型的不同实例绑定不同的lua脚本吗? #134

hxhb opened this issue Mar 23, 2020 · 1 comment

Comments

@hxhb
Copy link
Contributor

hxhb commented Mar 23, 2020

如题,看了一下Global_NewObject中的实现:

FScopedLuaDynamicBinding Binding(L, Class, ANSI_TO_TCHAR(ModuleName), TableRef);
UObject *Object = StaticConstructObject_Internal(Class, Outer, Name);

是动态绑定到UClass的,理解unlua的实现是要通过覆写CDO的信息来实现覆写,有可能实现绑定到不同对象实例吗?

@rowechien
Copy link
Collaborator

@hxhb 不支持的。覆写不会修改CDO。
细节都在How to Implement Overriding

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