// MonoBehaviour methods /// <summary> /// Calls <see cref="UpdateProperties()"/>. /// </summary> protected virtual void Awake() { if (Dictionary == null) { dictionary = Aruco.GetPredefinedDictionary(dictionaryName); } UpdateProperties(); }
// MonoBehaviour methods /// <summary> /// Initializes the properties. /// </summary> protected virtual void Awake() { if (Dictionary == null) { dictionary = Aruco.GetPredefinedDictionary(dictionaryName); } UpdateArucoHashCode(); }
/// <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 }
// MonoBehaviour methods /// <summary> /// Initialize the properties. /// </summary> protected virtual void Awake() { dictionary = Aruco.GetPredefinedDictionary(dictionaryName); }