首页 > 编程语言 > 详细

unity注意事项

时间:2015-08-21 21:17:58      阅读:218      评论:0      收藏:0      [点我收藏+]

1.you can‘t determine whether or not a child object is currently active in the scene by reading its activeSelf property. Instead, you should use the activeInHierarchy property, which takes the overriding effect of the parent into account.

你不能单靠读取一个对象的activeSelf属性值来判断这个对象是否处于激活状态。取而代之的是你应该使用activeInHierarchy属性,它会把父对象的状态考虑在内。

unity注意事项

原文:http://www.cnblogs.com/lovehyy/p/4748955.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!