public CubemapSlotControlView(CubemapInputMaterialSlot slot) { m_Slot = slot; var objectField = new ObjectField { objectType = typeof(Cubemap), value = m_Slot.cubemap }; objectField.OnValueChanged(OnValueChanged); Add(objectField); }
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); }
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); }