docs.unity.cn
Search Results for

    Show / Hide Table of Contents

    Method SetTransformParent

    SetTransformParent(Transform, Transform)

    Sets the parent transform of an object and records an undo operation.

    Declaration
    public void SetTransformParent(Transform transform, Transform newParent)
    Parameters
    Type Name Description
    Transform transform

    The Transform component whose parent is to be changed.

    Transform newParent

    The parent Transform to be assigned.

    In This Article
    Back to top
    Copyright © 2024 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)