Class EventMigrationUtility
Utility functions related to migrating deprecated UnityEvent properties.
Inherited Members
Namespace: UnityEditor.XR.Interaction.Toolkit
Syntax
public static class EventMigrationUtility
Methods
MigrateEvent(SerializedProperty, SerializedProperty)
Migrate the persistent listeners from one UnityEvent to another. The listeners will be removed from the source event, and appended to the destination event. The scripts of the target of Dynamic listeners still need to be manually updated to match the new event signature.
Declaration
[Obsolete("MigrateEvent is marked for deprecation and will be removed in a future version. It is only used for migrating deprecated events.")]
public static void MigrateEvent(SerializedProperty srcUnityEvent, SerializedProperty dstUnityEvent)
Parameters
Type | Name | Description |
---|---|---|
SerializedProperty | srcUnityEvent | The source SerializedProperty of the UnityEvent to move from. |
SerializedProperty | dstUnityEvent | The destination SerializedProperty of the UnityEvent to move to. |