docs.unity3d.com
    Show / Hide Table of Contents

    Class SerializationExtensions

    Extension methods used for scene object serialization

    Inheritance
    Object
    SerializationExtensions
    Namespace: Unity.RuntimeSceneSerialization
    Syntax
    public static class SerializationExtensions

    Methods

    GetTransformAtPath(Transform, String)

    Get the transform at the given path relative to this transform

    Declaration
    public static Transform GetTransformAtPath(this Transform root, string path)
    Parameters
    Type Name Description
    Transform root

    The transform to use as the root of the path

    String path

    A path based on GameObject names to used find a transform relative to the root

    Returns
    Type Description
    Transform

    The target transform, if it was found

    GetTransformPath(Transform, Transform)

    Get the path of a given transform relative to this transform

    Declaration
    public static string GetTransformPath(this Transform root, Transform target)
    Parameters
    Type Name Description
    Transform root

    The transform to use as the root of the path

    Transform target

    The transform whose path to get

    Returns
    Type Description
    String

    A path based on GameObject names to used find a transform relative to the root

    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