GetComponent 相关方法会增大CPU开销,但不会有GC。只有在Editor模式下,如果GetComponent结果为null会产生GC。 原因: Editor会做更多检测来保证程序 ...
確定! 回上一頁