Class SwitchMaterials
Replace inputs materials on renderers
Inherited Members
Namespace: UnityEditor.PixyzPlugin4Unity.Actions
Assembly: Unity.Pixyz.Plugin4Unity.Editor.dll
Syntax
public class SwitchMaterials : ActionInOut<IList<GameObject>, IList<GameObject>>
Fields
| Name | Description |
|---|---|
| materialReplacement | Materials that will be used during switch |
| mode | How should materials be replaced |
Properties
| Name | Description |
|---|---|
| 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 |
|---|---|
| AddSelectedMaterials() | Helper method that will pull materials from selected gameObject |
| FillFromCSV() | Helper method that will pull materials name from a csv file |
| FillWithAllMaterialsInScene() | Helper method that will pull all materials from the scene |
| GetWarnings() | Check if the current context will allow the correct execution of this Action |
| ResetMaterials() | Helper method to empty the current list of materials |
| 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. |