nanos world API Reference Unofficial documentation
Function Shared Fast

Paintable:GetMaterialTextureParameter

Gets a Texture parameter from this Actor's material

Syntax

Lua
my_paintable:GetMaterialTextureParameter(parameter_name, index = -1, attachable_id = "")

Parameters

Name Type Default Description
parameter_name string The name of the material parameter
index optional integer -1 The material index to get
attachable_id optional string "" The attachable ID (set with <code>AddSkeletalMeshAttached</code> or <code>AddStaticMeshAttached</code>) to get the material parameter. Pass empty to get from main mesh only

Returns

  • string texture or nil if parameter was not found