Vital.sandbox
Model

self:get_model_name

Shared

Retrieves the registered name of the model


Syntax

local name = self:get_model_name()

Parameters

TypeNameDescription

Returns

TypeNameDescription
stringnameRegistered name of the model

Examples

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

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

On this page