Class BakeImpostor
Generate an impostor based on the input
Inherited Members
Namespace: UnityEditor.PixyzPlugin4Unity.Actions
Assembly: Unity.Pixyz.Plugin4Unity.Editor.dll
Syntax
public class BakeImpostor : ActionInOut<IList<GameObject>, IList<GameObject>>
Fields
Name | Description |
---|---|
MapsResolution | Generated textures size. |
atlasSize | The square root of the size of the atlas of the different captured frames. The higher the value, the smoother the transition between frames, but the more demanding in terms of performance. |
impostorType | Octahedron: Viewers can view the impostor from any point of view. Hemi-octahedron: Creates impostor for the upper hemisphere, to optimize performance. Use this type if users can't view the model from below. |
renderOn | Define the type of mesh that will be used to render the impostor |
resolution | The resolution of texture maps baked to render the imposter (e.g. 2048x2048). |
Properties
Name | Description |
---|---|
Icon | Icon to be displayed in Toolbox and Rule Engine. If null, no icon will be displayed. To support light and dark themes: specify light theme path. Dark theme file name should be the same with a "d_" prefix. To support selected and unselected states: selected files names should be the same as main files but with a "s_" prefix. |
Id | The id of the Acton implementation. This id should be unique and is readonly. The id is the actual reference if the Action is serialized (in a set of RuleEngine Rules for example). |
MenuPathRuleEngine | The menu path for the RuleEngine. |
MenuPathToolbox | The menu path for the Toolbox. |
Priority | The order to use when placing this Action in a list. If the value is -1, the display name will be used instead; |
Tooltip | Returns the tooltip. |
Methods
Name | Description |
---|---|
GetErrors() | Virtual method for Error checks before execution. |
GetWarnings() | Virtual method for Warning checks before execution. |
Run(IList<GameObject>) | Abstract execution method. When creating a new Action, this method implementation will hold all the processing code. Executed on a background thread if IsAsync is true. |
Validate(object) | Called to validated/check the new input (new selection in the editor with toolbox action, or before running action in ruleset) |