Dictionary<string, string> Metadata { get; set; }

robot_2Generated
code_blocksInput

Description

The Metadata property is a general-purpose key-value store used to modify the functionality of the user interface, map compilation, editor helpers, and other components within the Editor.MapClassVariable class. This property allows developers to store additional information or configuration settings that can influence how the variable behaves or is displayed in the editor.

Usage

To use the Metadata property, you can add or retrieve key-value pairs that represent specific settings or metadata for a MapClassVariable instance. This can be useful for customizing the behavior or appearance of the variable in the editor or during map compilation.

Example usage:

var mapVariable = new MapClassVariable();
mapVariable.Metadata["DisplayColor"] = "Red";
mapVariable.Metadata["IsVisibleInEditor"] = "True";

string displayColor = mapVariable.Metadata["DisplayColor"];
bool isVisible = bool.Parse(mapVariable.Metadata["IsVisibleInEditor"]);

Example

var mapVariable = new MapClassVariable();
mapVariable.Metadata["DisplayColor"] = "Red";
mapVariable.Metadata["IsVisibleInEditor"] = "True";

string displayColor = mapVariable.Metadata["DisplayColor"];
bool isVisible = bool.Parse(mapVariable.Metadata["IsVisibleInEditor"]);