Skip to main content

Class: SetMaterialColor3Command

Defined in: packages/core/sdk/src/editor/commands/setMaterialValueCommand/SetMaterialColor3Command.ts:9

Extends

Constructors

Constructor

new SetMaterialColor3Command(option): SetMaterialColor3Command

Defined in: packages/core/sdk/src/editor/commands/setMaterialValueCommand/SetMaterialColor3Command.ts:10

Parameters

option

ISetMaterialColor3Command

Returns

SetMaterialColor3Command

Overrides

SetMaterialValueCommand.constructor

Properties

attributePath

attributePath: PropertyPath = []

Defined in: packages/core/sdk/src/editor/commands/Command.ts:23

Inherited from

SetMaterialValueCommand.attributePath


editor

editor: Editor

Defined in: packages/core/sdk/src/editor/commands/Command.ts:22

Inherited from

SetMaterialValueCommand.editor


executeNum

executeNum: number = 0

Defined in: packages/core/sdk/src/editor/commands/setMaterialValueCommand/SetMaterialValueCommand.ts:9

Inherited from

SetMaterialValueCommand.executeNum


id

id: number = 0

Defined in: packages/core/sdk/src/editor/commands/Command.ts:17

Inherited from

SetMaterialValueCommand.id


inMemory

inMemory: boolean = false

Defined in: packages/core/sdk/src/editor/commands/Command.ts:18

Inherited from

SetMaterialValueCommand.inMemory


name

name: string = ''

Defined in: packages/core/sdk/src/editor/commands/Command.ts:21

Inherited from

SetMaterialValueCommand.name


newValue

newValue: any

Defined in: packages/core/sdk/src/editor/commands/SetValueCommand.ts:16

Inherited from

SetMaterialValueCommand.newValue


object

object: any

Defined in: packages/core/sdk/src/editor/commands/Command.ts:26

Inherited from

SetMaterialValueCommand.object


oldValue

oldValue: any

Defined in: packages/core/sdk/src/editor/commands/SetValueCommand.ts:14

Inherited from

SetMaterialValueCommand.oldValue


source

source: string

Defined in: packages/core/sdk/src/editor/commands/Command.ts:28

Inherited from

SetMaterialValueCommand.source


type

type: string = 'SetValueCommand'

Defined in: packages/core/sdk/src/editor/commands/SetValueCommand.ts:12

Inherited from

SetMaterialValueCommand.type


updatable

updatable: boolean = false

Defined in: packages/core/sdk/src/editor/commands/Command.ts:19

Inherited from

SetMaterialValueCommand.updatable

Methods

execute()

execute(): void

Defined in: packages/core/sdk/src/editor/commands/setMaterialValueCommand/SetMaterialColor3Command.ts:18

Returns

void

Overrides

SetMaterialValueCommand.execute


fromJSON()

fromJSON(json): void

Defined in: packages/core/sdk/src/editor/commands/setMaterialValueCommand/SetMaterialColor3Command.ts:48

Parameters

json

any

Returns

void

Overrides

SetMaterialValueCommand.fromJSON


getAttributeName()

getAttributeName(): string[]

Defined in: packages/core/sdk/src/editor/commands/Command.ts:41

Returns

string[]

Inherited from

SetMaterialValueCommand.getAttributeName


notice()

notice(): void

Defined in: packages/core/sdk/src/editor/commands/setMaterialValueCommand/SetMaterialValueCommand.ts:28

通知属性变化

Returns

void

Inherited from

SetMaterialValueCommand.notice


toJSON()

toJSON(): CommandJson

Defined in: packages/core/sdk/src/editor/commands/setMaterialValueCommand/SetMaterialColor3Command.ts:38

Returns

CommandJson

Overrides

SetMaterialValueCommand.toJSON


undo()

undo(): void

Defined in: packages/core/sdk/src/editor/commands/setMaterialValueCommand/SetMaterialColor3Command.ts:26

Returns

void

Overrides

SetMaterialValueCommand.undo


update()

update(cmd): void

Defined in: packages/core/sdk/src/editor/commands/setMaterialValueCommand/SetMaterialColor3Command.ts:34

Parameters

cmd

SetValueCommand

Returns

void

Overrides

SetMaterialValueCommand.update