Unity activeInHierarchy 和 activeSelf

在h5里 如果你想知道自己是否被显示 判断stage是否为空就可以了
而unity里 判断自己是否在显示 需要用 activeInHierarchy
而 activeSelf 只是看自己是否被激活
其实h5和unity都差不多 只是换了名字 和 方法

猜你喜欢

转载自blog.csdn.net/qq_38913715/article/details/124318418