Inheritance: UnityEngine.MonoBehaviour
Exemple #1
0
        void Start()
        {
            pb_MetaDataComponent md = gameObject.GetComponent <pb_MetaDataComponent>();

            if (md == null)
            {
                md = gameObject.AddComponent <pb_MetaDataComponent>();
            }
        }
Exemple #2
0
		void OnEnable()
		{
			data = (pb_MetaDataComponent) target;
			diff = data.metadata.componentDiff;
		}