如果从场景中删除对象,我将如何检测(或触发某个函数)?
答案 0 :(得分:6)
fn nodeDeletedCallback =
(
deletedObj = callbacks.notificationParam()
print ("Deleting: " + (deletedObj as string))
)
Callbacks.addscript #nodePreDelete "nodeDeletedCallback()" id:#id_AStringYouCanUseLaterToIdentifyThisCallback