UF_OBJ_ask_display_properties 返回一个对象的显示属性(层.颜色.隐藏状态.线宽和字体). UF_OBJ_disp_props_p_t结构体: layer int 对象所在的层 color int 对象颜色 blank_status int 对象的隐藏状态 UF_OBJ_NOT_BLANKED UF_OBJ_BLANKED line_width int 线宽 UF_OBJ_WIDTH_NORMAL UF_OBJ_WIDTH_THICK UF_OBJ_WIDTH_THI
using UnityEngine; using System.Collections; public class MouseEvent_Color : MonoBehaviour { //物体初始颜色 private Color CubeColor; private Texture CubeTexture; private GameObject ObjCube; // Use this for initialization void Start () { ObjCube = GameObjec