Class SwitchMaterials
Replace inputs materials on renderers
Inherited Members
Namespace: UnityEditor.PixyzPlugin4Unity.RuleEngine
Assembly: Unity.Pixyz.Plugin4Unity.Editor.dll
Syntax
public class SwitchMaterials : ActionInOut<IList<GameObject>, IList<GameObject>>
Fields
Name | Description |
---|---|
materialRemplacements | Materials that will be used during switch |
mode | How should materials be replaced |
Properties
Name | Description |
---|---|
id | Unique id of this action, generated when the file is generated |
menuPathRuleEngine | The path used for the contextual menu in the RuleEngine |
menuPathToolbox | The path used for the contextual menu in the Toolbox |
tooltip | Quick description to describe the behavior of this action |
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>) | Execute the behavior of this action by replacing materials on all submesh of the input |