Configuration information name||doc136144

September 20, 2022

Format

 config.fullName
  • The class to which the attribute belongs:config

Description

The full name of the configuration information, usually themyplugin/Start + template name of configuration information.


The role of the configuration information full name

In different modules, the usage of configuration information names is different. For example, under the unit module, the full name of the configuration information can be used asEntityServer.CreateofCreate parameterscfgName field to create an entity object; under the block module, the full name of the configuration information can be passed throughMap:createBlockCreate a block directly on the map and more.


Value Returned

type Description
string Placement name


Code Samples

local cfg = Entity.GetCfg("myplugin/player1")  
print(cfg.fullName)