docs.unity3d.com
    目次を表示する/隠す

    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.

    トップに戻る
    Copyright © 2023 Unity Technologies — 商標と利用規約
    • 法律関連
    • プライバシーポリシー
    • クッキー
    • 私の個人情報を販売または共有しない
    • Your Privacy Choices (Cookie Settings)