Model

self:get_component_lod_bias

Shared

Retrieves the LOD bias of a component on the model

Syntax

local result = self:get_component_lod_bias(
    component
)

Parameters

TypeNameDescription
stringcomponentPath of the component to query

Returns

TypeNameDescription
floatresultCurrent LOD bias of the component

Examples

Get the LOD bias of a component
core.model.load("character", "models/character.glb")

local entity = core.model.create("character")

core.engine.print("info", "LOD bias:", entity:get_component_lod_bias("Skeleton3D/Body"))

On this page