self:get_model_name

Shared

Retrieves the registered name of the model


Syntax

local name = self:get_model_name()

Parameters

No parameters are accepted by this function

Returns

TypeNameDescription
stringnameRegistered name of the model

Examples

Get the registered name of a model
local entity = core.model.create("character")

core.engine.print("info", "Model name:", entity:get_model_name()) -- 'character'

On this page