예제 #1
0
            // MonoBehaviour methods

            /// <summary>
            /// Calls <see cref="UpdateProperties()"/>.
            /// </summary>
            protected virtual void Awake()
            {
                if (Dictionary == null)
                {
                    dictionary = Aruco.GetPredefinedDictionary(dictionaryName);
                }
                UpdateProperties();
            }
예제 #2
0
            // MonoBehaviour methods

            /// <summary>
            /// Initializes the properties.
            /// </summary>
            protected virtual void Awake()
            {
                if (Dictionary == null)
                {
                    dictionary = Aruco.GetPredefinedDictionary(dictionaryName);
                }
                UpdateArucoHashCode();
            }
예제 #3
0
            /// <summary>
            /// Calls <see cref="OnPropertyUpdated()"/> in editor mode.
            /// </summary>
            protected virtual void OnValidate()
            {
#if UNITY_EDITOR
                if (!UnityEditor.EditorApplication.isPlayingOrWillChangePlaymode)
                {
                    if (Dictionary == null || dictionaryName != Dictionary.Name)
                    {
                        dictionary = Aruco.GetPredefinedDictionary(dictionaryName);
                    }
                    OnPropertyUpdated();
                }
#endif
            }
예제 #4
0
            // MonoBehaviour methods

            /// <summary>
            /// Initialize the properties.
            /// </summary>
            protected virtual void Awake()
            {
                dictionary = Aruco.GetPredefinedDictionary(dictionaryName);
            }