docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method UnregisterProperty

    UnregisterProperty(Object, string)

    Removed the property tracking and reverts the value back to the original value it was before RegisterProperty(Object, string) was called. In most cases you will not need to call this unless the driven properties are likely to change dynamically. Calling this method in play mode or a player build will do nothing.

    Declaration
    public static void UnregisterProperty(Object target, string propertyPath)
    Parameters
    Type Name Description
    Object target

    The object that the property is part of.

    string propertyPath

    The serialized property path. The value that would be used to access using a SerializedProperty

    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)