Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

“thiz"在接口中的实际意义是什么#46

AnsweredbyLanderlYoung
yqs112358 asked this question inQ&A
Discussion options

不知道我的理解是否正确:
thiz表示当前CPP对象绑定的脚本对象
构造函数中给ScriptClass传入thiz是为了将新构造的对象初始化为现有的脚本对象的子对象

那在父对象销毁的时候,他所有的子对象也都会销毁吗

You must be logged in to vote

是的,ScriptClass构造的实际正式脚本对象构造的时候,因此thiz表示的表示的就是对应的脚本对象。

Replies: 1 comment

Comment options

是的,ScriptClass构造的实际正式脚本对象构造的时候,因此thiz表示的表示的就是对应的脚本对象。

You must be logged in to vote
0 replies
Answer selected byLanderlYoung
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Category
Q&A
Labels
None yet
2 participants
@yqs112358@LanderlYoung

[8]ページ先頭

©2009-2025 Movatter.jp