Unity Standard Assets Profile Utility

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.