maxscript 全局变量的收集时机

globalvars.remove #test2
 
fn foo =
(
	global test2 = 1
)
 
globalvars.isGlobal #test2 --true
globalvars.get #test2 --undefined

是在执行解析时进行,而非代码块执行时

posted @ 2023-10-15 22:28  trykle  阅读(40)  评论(0编辑  收藏  举报