unity怎么在脚本里获取hierarchy里的物体?

2025-04-07 07:59:32
推荐回答(2个)
回答1:

target, 直接拖过去就行了.

回答2:

可以定义 , 用GameObject.find("name")