Class ImpostorGenerator
Static class to create impostor GameObjects from other GameObjects.
Inherited Members
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 |