Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using UnityEngine;
- using System.Collections;
- //This script shows or hides an object on start. Nice for cleaning up the editor. If you use a lot of objects, might wanna
- //make a version of this that goes through a list of objects.
- public class ShowHideOnStart : MonoBehaviour {
- public enum Action {Show, Hide}
- public Action actionOnStart;
- void Start () {
- if( actionOnStart == Action.Show )
- renderer.enabled = true;
- else
- renderer.enabled = false;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement