Пример #1
0
        public override void OnEnable()
        {
            base.OnEnable();
            const string markerGuidProp = "m_MarkerGuid";

            m_MarkerGuidProperty = serializedObject.FindProperty(markerGuidProp);

            m_MarkerDefinitionSelectorDrawer = new MarkerDefinitionSelectorDrawer(m_MarkerGuidProperty.stringValue);
        }
Пример #2
0
        void OnEnable()
        {
            m_SynthesizedMarkerId = (SynthesizedMarkerId)target;

            m_SynthMarkerGuidProperty    = serializedObject.FindProperty(k_SynthesizedMarkerGuidProp);
            m_SynthMarkerTextureProperty = serializedObject.FindProperty(k_SynthesizedMarkerTextureProp);


            m_MarkerDefinitionSelectorDrawer = new MarkerDefinitionSelectorDrawer(m_SynthMarkerGuidProperty.stringValue);

            HideRenderingAndSyntheticComponents(m_SynthesizedMarkerId.gameObject);
        }
Пример #3
0
 void OnDisable()
 {
     m_MarkerDefinitionSelectorDrawer = null;
 }
Пример #4
0
 public override void OnDisable()
 {
     base.OnDisable();
     m_MarkerDefinitionSelectorDrawer = null;
 }