The decision to write this series resulted from what happened just now, and I found that the current version of Unity has a Utility standard resource pack with a Fpscounter script that provides basic functionality to show the game's frame rate, and I just wrote a script with the same functionality a few weeks ago. The frustration of "reinventing the wheel" has stimulated me deeply, given that unity officials do not have much introductory work on their standard resources, so I intend to do a simple study and introduction to some of the more useful packages of standard resources to avoid wasting unnecessary time and energy with others.
The utility package (Unity5.3.4), as its name implies, is the toolset.
Package contains three folders, the other two as the name implies one is a cross-platform input is a font, so we mainly look at the script under the Utility folder.
Activatetrigger:
The multi-function script, triggered by the collider of the trigger mode, has five Action property settings for Trigger, Replace, Activate, Enable, Animate, deactivate. When repeat trigger is selected, the script action is triggered every time ontriggerenter, and when repeat trigger is unchecked, ontriggerenter count minus 1 per trigger when trigger Count is reduced to 0 o'clock to trigger the script action.
Trigger: Broadcast "Doactivatetrigger" message to target game object
Replace: Replaces the target game object with an instance of the source preset
Activate: Activating target Game Object
Enable: Activates the target script (I do not know why the test was unsuccessful)
Animate: Play an animation on a target game object
Deactivate: Disable Target Game object
To be continue ...
Unity Standard Assets Profile Utility