Class: SetMaterialCommand
Defined in: packages/core/sdk/src/editor/commands/setMaterialValueCommand/SetMaterialCommand.ts:3
Extends
Command
<THREE.Material
|null
>
Constructors
Constructor
new SetMaterialCommand(
object
,newValue
,materialSlot
):SetMaterialCommand
Defined in: packages/core/sdk/src/editor/commands/setMaterialValueCommand/SetMaterialCommand.ts:7
Parameters
object
AbstractMesh
newValue
Material
materialSlot
number
= -1
Returns
SetMaterialCommand
Overrides
Properties
attributePath
attributePath:
PropertyPath
=[]
Defined in: packages/core/sdk/src/editor/commands/Command.ts:23
Inherited from
editor
editor:
Editor
Defined in: packages/core/sdk/src/editor/commands/Command.ts:22
Inherited from
id
id:
number
=0
Defined in: packages/core/sdk/src/editor/commands/Command.ts:17
Inherited from
inMemory
inMemory:
boolean
=false
Defined in: packages/core/sdk/src/editor/commands/Command.ts:18
Inherited from
materialSlot
materialSlot:
number
Defined in: packages/core/sdk/src/editor/commands/setMaterialValueCommand/SetMaterialCommand.ts:5
name
name:
string
=''
Defined in: packages/core/sdk/src/editor/commands/Command.ts:21
Inherited from
object
object:
any
Defined in: packages/core/sdk/src/editor/commands/Command.ts:26
Inherited from
source
source:
string
Defined in: packages/core/sdk/src/editor/commands/Command.ts:28
Inherited from
type
type:
string
='SetMaterialCommand'
Defined in: packages/core/sdk/src/editor/commands/setMaterialValueCommand/SetMaterialCommand.ts:4
Overrides
updatable
updatable:
boolean
=false
Defined in: packages/core/sdk/src/editor/commands/Command.ts:19
Inherited from
Methods
execute()
execute():
void
Defined in: packages/core/sdk/src/editor/commands/setMaterialValueCommand/SetMaterialCommand.ts:19
Returns
void
Overrides
fromJSON()
fromJSON(
json
):void
Defined in: packages/core/sdk/src/editor/commands/setMaterialValueCommand/SetMaterialCommand.ts:40
Parameters
json
any
Returns
void
Overrides
getAttributeName()
getAttributeName():
string
[]
Defined in: packages/core/sdk/src/editor/commands/Command.ts:41
Returns
string
[]
Inherited from
toJSON()
toJSON():
any
Defined in: packages/core/sdk/src/editor/commands/setMaterialValueCommand/SetMaterialCommand.ts:29
Returns
any
Overrides
undo()
undo():
void
Defined in: packages/core/sdk/src/editor/commands/setMaterialValueCommand/SetMaterialCommand.ts:24
Returns
void
Overrides
update()
abstract
update(command
):void
Defined in: packages/core/sdk/src/editor/commands/Command.ts:39
Parameters
command
this
Returns
void