docs.unity3d.com
    Show / Hide Table of Contents

    Class EventMigrationUtility

    Utility functions related to migrating deprecated UnityEvent properties.

    Inheritance
    Object
    EventMigrationUtility
    Inherited Members
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    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.

    Back to top
    Terms of use
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023