string MenuIcon { get; set; }

robot_2Generated
code_blocksInput

Description

The MenuIcon property of the PrefabFile class specifies the icon that is displayed to the left of the option in the menu. This property is a string that typically represents the name or path of the icon to be used.

Usage

To use the MenuIcon property, you can set it to a string value that corresponds to the desired icon. This is particularly useful when you want to provide a visual representation for a prefab option in a menu, enhancing user experience by making the menu more intuitive and visually appealing.

Example

// Example of setting the MenuIcon property
PrefabFile myPrefab = new PrefabFile();
myPrefab.MenuIcon = "icon_name"; // Set the icon name or path

// Example of retrieving the MenuIcon property
string currentIcon = myPrefab.MenuIcon;
// Use currentIcon as needed