string MenuIcon { get; set; }

book_4_sparkGenerated
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 prefab = new PrefabFile();
prefab.MenuIcon = "icon_name"; // Set the icon name or path

// Example of getting the MenuIcon property
string icon = prefab.MenuIcon;
// Use the icon variable as needed