一些关键字

来源:互联网 发布:我是淘宝骗保师 编辑:程序博客网 时间:2024/06/04 23:22

[HideInInspector] Makes a variable not show up in the inspector but be serialized.
使变量不在监视面板上显示,但是序列化。
http://docs.unity3d.com/ScriptReference/HideInInspector.html

using UnityEngine;using System.Collections;public class ExampleClass : MonoBehaviour {    [HideInInspector]    public int p = 5;}
0 0