docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class ImpostorGenerator

    Static class to create impostor GameObjects from other GameObjects.

    Inheritance
    object
    ImpostorGenerator
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: UnityEditor.Pixyz.UnitySDK
    Assembly: Unity.Pixyz.UnitySDK.Editor.dll
    Syntax
    public static class ImpostorGenerator

    Fields

    ProgressReporter

    Report progress

    Declaration
    public static ProgressReporter ProgressReporter
    Field Value
    Type Description
    ProgressReporter

    Methods

    Run(GameObject, Type, int, int)

    Create an impostor GameObject from a GameObject and its children.

    Declaration
    public static GameObject Run(GameObject root, ImpostorGenerator.Type type = Type.Octahedron, int resolution = 2048, int framesXY = 16)
    Parameters
    Type Name Description
    GameObject root

    The function will process this GameObject and all its children.

    ImpostorGenerator.Type type

    Project impostor on a "sphere" or an "hemisphere". Choose HemiOctahedron if the model is not going to be seen from underneath: it will save space in the texture, resulting in a better quality.

    int resolution

    The resolution of texture maps baked to render the impostor (ex 4096x4096)

    int framesXY

    The square root of the size of the atlas of the different captured frames.

    Returns
    Type Description
    GameObject

    Returned value

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