Create Icon [Obsolete]

STD Library
Obsolete
Server Side
Both Mobile and PC

Create an icon using the specified icon type. If there are more properties to set, further set its entity properties through the entity (deprecated, please use CreateLevelObject)

Declaration

func CreateIconEntity_Deprecated(out var entityVarName entity<PresentIcon_Deprecated>, ownerPlayer entity<Player>, iconType IconType)
go

Parameters

Input

Name Type Description
Player Player The player entity it belongs to, only visible to that player
Icon IconType Resource path, the resource path corresponding to the icon selected by the player

Out

Name Type Description
Icon entity PresentIcon[Obsolete] The name of the parameter used to create the icon entity in the code, and its corresponding local variable value is the entity that creates the icon