docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class SwitchMaterials

    Replace inputs materials on renderers

    Inheritance
    object
    ActionBase
    ActionInOut<IList<GameObject>, IList<GameObject>>
    SwitchMaterials
    Inherited Members
    ActionInOut<IList<GameObject>, IList<GameObject>>.inputType
    ActionInOut<IList<GameObject>, IList<GameObject>>.outputType
    ActionInOut<IList<GameObject>, IList<GameObject>>.preProcess(IList<GameObject>, bool)
    ActionInOut<IList<GameObject>, IList<GameObject>>.run(IList<GameObject>)
    ActionInOut<IList<GameObject>, IList<GameObject>>.runAsync()
    ActionBase.order
    ActionBase.isInRuleEngine
    ActionBase.isInToolbox
    ActionBase.inputType
    ActionBase.outputType
    ActionBase.Input
    ActionBase.Output
    ActionBase.helpersMethods
    ActionBase.undo
    ActionBase.isAsync
    ActionBase.updateStats
    ActionBase._isRunning
    ActionBase._stepName
    ActionBase._stepProgress
    ActionBase.IsRunning
    ActionBase.StepName
    ActionBase.StepProgress
    ActionBase.completed
    ActionBase.progressChanged
    ActionBase.getErrors()
    ActionBase.executionErrors
    ActionBase.getInfos()
    ActionBase.onBeforeDraw()
    ActionBase.onAfterDraw()
    ActionBase.postProcess()
    ActionBase.postProcessCoroutine()
    ActionBase.Dispose()
    ActionBase.onSelectionChanged(IList<GameObject>)
    ActionBase.initialize()
    ActionBase.UpdateProgressBar(float, string)
    ActionBase.UpdateProgressBarCoroutine(float, string)
    ActionBase.displayNameRuleEngine
    ActionBase.displayNameToolbox
    ActionBase.invoke(object, bool)
    ActionBase.invokePreProcess(object, bool)
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    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

    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)