System.Nullable<float> Height { get; set; }

robot_2Generated
code_blocksInput

Description

The Height property of the CitizenAnimationHelper class represents the height scale of the citizen avatar. This property is nullable and can be used to adjust the avatar's height within a specified range.

Usage

To set the height of a citizen avatar, assign a float value to the Height property. The value should be within the range of 0.5 to 1.5, inclusive. This allows for scaling the avatar's height to be shorter or taller than the default size.

Example

// Example of setting the height of a citizen avatar
CitizenAnimationHelper animationHelper = new CitizenAnimationHelper();

// Set the height to 1.2, which is within the allowed range
animationHelper.Height = 1.2f;

// Check if the height is set
if (animationHelper.Height.HasValue)
{
    float currentHeight = animationHelper.Height.Value;
    // Use currentHeight as needed
}