string Title { get; set; }

book_4_sparkGenerated
code_blocksInput

Description

The Title property of the PrefabVariable class provides a user-friendly title for the variable. This title is intended to be easily readable and understandable by users, making it easier to identify and work with the variable within the context of the application.

Usage

To use the Title property, simply access it through an instance of the PrefabVariable class. You can get or set the title as needed:

Example

// Example of setting and getting the Title property
PrefabVariable myVariable = new PrefabVariable();

// Set the title
myVariable.Title = "Player Health";

// Get the title
string title = myVariable.Title;

// Output the title
// Note: Avoid using Console.WriteLine in Sandbox environment
// Use appropriate UI or logging methods instead
// Example: Log.Info(title);