docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method CreatePrimitive

    CreatePrimitive(PrimitiveType)

    Creates the specified primitive and keeps track of it, so it is cleaned up properly at [TearDown]. Uses appropriate method depending on whether the test is playing.

    Declaration
    protected virtual GameObject CreatePrimitive(PrimitiveType type)
    Parameters
    Type Name Description
    PrimitiveType type

    Type of primitive.

    Returns
    Type Description
    GameObject

    GameObject created.

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