Beispiel #1
0
        protected virtual void MigrateEvents(SerializedObject serializedObject)
        {
#pragma warning disable 618 // One-time migration of deprecated events.
            EventMigrationUtility.MigrateEvent(serializedObject.FindProperty("m_OnFirstHoverEntered"), serializedObject.FindProperty("m_FirstHoverEntered"));
            EventMigrationUtility.MigrateEvent(serializedObject.FindProperty("m_OnLastHoverExited"), serializedObject.FindProperty("m_LastHoverExited"));
            EventMigrationUtility.MigrateEvent(serializedObject.FindProperty("m_OnHoverEntered"), serializedObject.FindProperty("m_HoverEntered"));
            EventMigrationUtility.MigrateEvent(serializedObject.FindProperty("m_OnHoverExited"), serializedObject.FindProperty("m_HoverExited"));
            EventMigrationUtility.MigrateEvent(serializedObject.FindProperty("m_OnSelectEntered"), serializedObject.FindProperty("m_SelectEntered"));
            EventMigrationUtility.MigrateEvent(serializedObject.FindProperty("m_OnSelectExited"), serializedObject.FindProperty("m_SelectExited"));
            EventMigrationUtility.MigrateEvent(serializedObject.FindProperty("m_OnActivate"), serializedObject.FindProperty("m_Activated"));
            EventMigrationUtility.MigrateEvent(serializedObject.FindProperty("m_OnDeactivate"), serializedObject.FindProperty("m_Deactivated"));
#pragma warning restore 618
        }
Beispiel #2
0
 /// <inheritdoc />
 protected override void MigrateEvents(SerializedObject serializedObject)
 {
     base.MigrateEvents(serializedObject);
     EventMigrationUtility.MigrateEvent(serializedObject.FindProperty("m_OnObjectPlaced"), serializedObject.FindProperty("m_ObjectPlaced"));
 }