Skip to main content

AmplifyImpostorAsset

A class in Root.Township, the global namespace.

Asset from the third-party Amplify Impostors tool: the bake settings and result (mesh and material) for a billboard impostor of a model.

Constructors​

MemberWhat it is
AmplifyImpostorAsset()Use ScriptableObject.CreateInstance instead of new; Unity loads the saved ones from assets.

Fields​

MemberWhat it is
bool DecoupleAxisFramesWhether horizontal and vertical frame counts are set separately.
int HorizontalFramesHow many views are baked around the horizontal axis (1 to 32).
ImpostorType ImpostorTypeThe impostor layout, such as octahedron (the default).
bool LockedSizesWhether the texture width and height are locked to the same size.
Material MaterialThe baked impostor material.
int MaxVerticesMost vertices the impostor's outline mesh may use (4 to 16).
Mesh MeshThe baked impostor mesh.
float NormalScaleScale applied to the baked normals.
List<TextureOutput> OverrideOutputTexture outputs that replace the preset's.
int PixelPaddingPadding in pixels around each baked frame.
AmplifyImpostorBakePreset PresetThe bake preset that sets which textures are produced.
int SelectedSizeThe chosen texture size, 2048 by default.
Vector2[] ShapePointsThe outline of the impostor mesh in 0 to 1 space, an octagon by default.
Vector2 TexSizeThe baked texture's width and height.
float ToleranceHow closely the outline mesh follows the model's shape.
int VersionFormat version of the asset.
int VerticalFramesHow many views are baked around the vertical axis (1 to 33).