Advertisement
jamieTheCoder

CreateReferenceHolder

Sep 19th, 2022
36
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.40 KB | Gaming | 0 0
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. [ExecuteInEditMode]
  5. public class CreateReferenceHolder : MonoBehaviour
  6. {
  7.     // Start is called before the first frame update
  8.     void Start()
  9.     {
  10.         gameObject.name = "Reference Holder";
  11.         gameObject.tag = "Reference";
  12.         gameObject.AddComponent<FindGameObjectWithMethod>();
  13.         Destroy(this);
  14.     }
  15. }
  16.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement