示例#1
0
        public CubemapSlotControlView(CubemapInputMaterialSlot slot)
        {
            m_Slot = slot;
            var objectField = new ObjectField {
                objectType = typeof(Cubemap), value = m_Slot.cubemap
            };

            objectField.OnValueChanged(OnValueChanged);
            Add(objectField);
        }
示例#2
0
        public CubemapSlotControlView(CubemapInputMaterialSlot slot)
        {
            AddStyleSheetPath("Styles/Controls/CubemapSlotControlView");
            m_Slot = slot;
            var objectField = new ObjectField {
                objectType = typeof(Cubemap), value = m_Slot.cubemap
            };

            objectField.OnValueChanged(OnValueChanged);
            Add(objectField);
        }
示例#3
0
        public CubemapSlotControlView(CubemapInputMaterialSlot slot)
        {
            styleSheets.Add(Resources.Load <StyleSheet>("Styles/Controls/CubemapSlotControlView"));
            m_Slot = slot;
            var objectField = new ObjectField {
                objectType = typeof(Cubemap), value = m_Slot.cubemap
            };

            objectField.RegisterValueChangedCallback(OnValueChanged);
            Add(objectField);
        }