docs.unity.cn
Search Results for

    Show / Hide Table of Contents

    Method Create

    Create()

    Creates a new GameObject and returns it. This method also calls GameObjectInstantiated.

    Declaration
    public static GameObject Create()
    Returns
    Type Description
    GameObject

    The new GameObject.

    Create(string)

    Creates a new GameObject and returns it. This method also calls GameObjectInstantiated.

    Declaration
    public static GameObject Create(string name)
    Parameters
    Type Name Description
    string name

    The name to be given to the new GameObject.

    Returns
    Type Description
    GameObject

    The new GameObject.

    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)