Ejemplo n.º 1
0
        public override void AddObjectDetail(Object obj, Object refObj, Object detailRefObj)
        {
            Shader shader = obj as Shader;

            if (shader == null)
            {
                return;
            }
            ObjectDetail detail = null;

            foreach (var v in CheckList)
            {
                if (v.checkObject == obj)
                {
                    detail = v;
                }
            }
            if (detail == null)
            {
                detail = new ShaderDetail(obj, this);
            }
            detail.AddObjectReference(refObj, detailRefObj);
        }
Ejemplo n.º 2
0
        public override void ShowChildDetail(ObjectDetail detail)
        {
            ShaderDetail shaderDetail = detail as ShaderDetail;

            if (!shaderDetail.showShaderProperty)
            {
                return;
            }
            for (int i = 0; i < shaderDetail.propertyList.Count; i++)
            {
                ShaderProperty property = shaderDetail.propertyList[i];
                if (property == null)
                {
                    continue;
                }
                GUILayout.BeginHorizontal();
                GUILayout.Space(720);
                GUILayout.Label(property.name, GUILayout.Width(100));
                GUILayout.Label(property.type, GUILayout.Width(100));
                GUILayout.Label(property.description, GUILayout.Width(100));
                GUILayout.EndHorizontal();
            }
        }
Ejemplo n.º 3
0
        private void OnButtonShowPropertyClick(ObjectDetail detail)
        {
            ShaderDetail sd = detail as ShaderDetail;

            sd.showShaderProperty = !sd.showShaderProperty;
        }