docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method ExtractKeyAndSubKey

    ExtractKeyAndSubKey(object, out string, out string)

    Extracts main and subobject keys if properly formatted

    Declaration
    public static bool ExtractKeyAndSubKey(object keyObj, out string mainKey, out string subKey)
    Parameters
    Type Name Description
    object keyObj

    The key as an object.

    string mainKey

    The key of the main asset. This will be set to null if a sub key is not found.

    string subKey

    The key of the sub object. This will be set to null if not found.

    Returns
    Type Description
    bool

    Returns true if properly formatted keys are extracted.

    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)