Texture Group

TextureGroup

A way to group textures. Texture groups can also be used to represent materials in enabled formats

new TextureGroup( [data, uuid] )

Creates a new TextureGroup

Arguments:
  • data: Omit (Optional)
  • uuid: string (Optional)
PropertyTypeDescription
uuidstring
namestring
foldedboolean
is_materialbooleanIf true, the texture group works as a material
material_configTextureGroupMaterialConfigMaterial configuration

extend( data )

Arguments:
  • data: TextureGroupOptions
    • uuid: string (Optional)
    • name: string (Optional)
    • is_material: boolean (Optional)
    • material_config: TextureGroupMaterialConfigData (Optional)
      • color_value: Array (Optional)
      • mer_value: Array (Optional)
      • saved: boolean (Optional)

Returns: TextureGroup

add()

Returns: TextureGroup

select()

Returns: TextureGroup

remove()

showContextMenu( event )

Arguments:

rename()

Returns: TextureGroup

getTextures()

Returns: Array of Texture

getUndoCopy()

Returns: Required

getSaveCopy()

Returns: Omit

updateMaterial()

getMaterial()

Returns: THREE.MeshStandardMaterial

all

Static Property

Type: Array of TextureGroup

material

Accessor

TextureGroupMaterialConfig

new TextureGroupMaterialConfig( texture_group, data )

Creates a new TextureGroupMaterialConfig

Arguments:
  • texture_group: TextureGroup
  • data: TextureGroupMaterialConfigData
    • color_value: Array (Optional)
    • mer_value: Array (Optional)
    • saved: boolean (Optional)
PropertyTypeDescription
color_valueArray
mer_valueArray
savedboolean
menuMenu
texture_groupTextureGroup

extend( data )

Arguments:
  • data: TextureGroupMaterialConfigData
    • color_value: Array (Optional)
    • mer_value: Array (Optional)
    • saved: boolean (Optional)

Returns: TextureGroupMaterialConfig

getUndoCopy()

Returns: See types

getSaveCopy()

Returns: See types

compileForBedrock()

Returns: See types

getFilePath()

Returns: string

getFileName( [extension] )

Arguments:
  • extension: boolean (Optional)

Returns: string

save()

showContextMenu( event )

Arguments:

propertiesDialog()

importTextureSet( file )

Global Function

Arguments:
  • file: any