HideInInspector

Unity3D 2012. 11. 2. 15:19
반응형

Makes a variable not show up in the inspector but be serialized.

C#
using UnityEngine;
using System.Collections;

public class example : MonoBehaviour {
[HideInInspector]
public int p = 5;
}

반응형
: