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)
Property | Type | Description |
---|---|---|
uuid | string | |
name | string | |
folded | boolean | |
is_material | boolean | If true, the texture group works as a material |
material_config | TextureGroupMaterialConfig | Material configuration |
extend( data )
Arguments:
data
: TextureGroupOptionsuuid
: 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:
event
: Event
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
: TextureGroupdata
: TextureGroupMaterialConfigDatacolor_value
: Array (Optional)mer_value
: Array (Optional)saved
: boolean (Optional)
Property | Type | Description |
---|---|---|
color_value | Array | |
mer_value | Array | |
saved | boolean | |
menu | Menu | |
texture_group | TextureGroup |
extend( data )
Arguments:
data
: TextureGroupMaterialConfigDatacolor_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:
event
: Event
propertiesDialog()
importTextureSet( file )
Global Function
Arguments:
file
: any