- Unity 2017 Game Optimization(Second Edition)
- Chris Dickinson
- 214字
- 2021-07-02 23:21:04
Verifying script presence
Sometimes, there are things we expect to see, but don't. These are usually easy to spot because the human brain is very good at pattern recognition and spotting differences we didn't expect. Meanwhile, there are times where we assume that something has been happening, but it didn't. These are generally more difficult to notice, because we're often scanning for the first kind of problem, and we’re assuming that the things we don’t see are working as intended. In the context of Unity, one problem that manifests itself this way is verifying that the scripts we expect to be operating are actually present in the Scene.
Script presence can be quickly verified by typing the following into the Hierarchy window textbox:
t:<monobehaviour name>
For example, typing t:mytestmonobehaviour (note that it is not case-sensitive) into the Hierarchy textbox will show a shortlist of all GameObjects that currently have at least one MyTestMonoBehaviour script attached as a Component.
Note that this shortlist feature also includes any GameObjects with Components that derive from the given script name.
We should also double-check that the GameObjects they are attached to are
still enabled, since we may have disabled them during earlier testing since someone or something may have accidentally deactivated the object.
- Getting Started with React
- Hands-On Machine Learning with scikit:learn and Scientific Python Toolkits
- 計算機圖形學編程(使用OpenGL和C++)(第2版)
- Effective Python Penetration Testing
- AIRIOT物聯網平臺開發框架應用與實戰
- Linux C編程:一站式學習
- Python語言科研繪圖與學術圖表繪制從入門到精通
- Flink技術內幕:架構設計與實現原理
- 高效使用Greenplum:入門、進階與數據中臺
- Mastering ASP.NET Core 2.0
- JavaScript Concurrency
- Practical Responsive Typography
- C語言編程魔法書:基于C11標準
- Leaflet.js Essentials
- Swift iOS Programming for Kids