csharp
public sealed class MaterialParameterCommandAdding or removing one of a material's parameters.
No guide page documents this yet — the page shows what the code says about itself.
Remarks
The parameter list is the one part of a material an inspector cannot express — a member's editor edits a value, and this changes which values there are — so it is a command of its own. Everything inside a parameter is an ordinary inspector edit on the object.
Fields and properties (1)
public string NameWhat this is called in the undo history, as a person would say it.
Methods (4)
public MaterialParameterCommand(MaterialDocument document, IMaterialParameter parameter, int index, bool adding)Describes adding or removing a parameter.
public void Do(EditorContext context)Applies the change.
public void Undo(EditorContext context)Puts back exactly what Do changed.
public bool TryMergeWith(IEditorCommand previous, out IEditorCommand? merged)
Used by (1)
- MaterialDocumentVixen.Editor.AssetEditors