Entity.GetCfg||doc136912

September 20, 2022

Format

local cfg = Entity.GetCfg(fullName)
  • Class that Function belongs to : Config
  • Call limit : Common

Description

Get configuration information of Entity templates.

Parameters

Variable name Type Description
fullName string template path, path format is "myplugin/".. "templateID"

Code Samples

Create an Entity template with the ID "testEntity", then use code to get its configuration information and print it

local cfg = Entity.GetCfg("myplugin/" .. "testEntity")
for k, v in pairs(cfg) do
    print(k, v)
end