docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method CreateCube

    CreateCube(double, double, double, int, bool)

    Create a new cube

    Declaration
    public uint CreateCube(double sizeX, double sizeY, double sizeZ, int subdivision = 1, bool generateUV = true)
    Parameters
    Type Name Description
    double sizeX

    Size of the Cube on the x axis

    double sizeY

    Size of the Cube on the y axis

    double sizeZ

    Size of the Cube on the z axis

    int subdivision

    Subdivision of the Cube on all the axis

    bool generateUV

    Generation of the UV

    Returns
    Type Description
    uint
    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)