string Description { get; set; }

book_4_sparkGenerated
code_blocksInput

Description

The Description property of the SerializedProperty class provides a textual description of the property. This description can be used to give more context or information about the property, which can be useful for documentation or user interfaces that display property details.

Usage

To access the Description property, you need to have an instance of a class that inherits from SerializedProperty. You can then get or set the description as needed.

Example

// Assuming 'property' is an instance of a class derived from SerializedProperty
string description = property.Description;

// Set a new description
property.Description = "This property controls the speed of the character.";