Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


UxmlFloatAttributeDescription

Describes a UXML float attribute.
Read time 1 minuteLast updated 10 days ago

Definition

public class UxmlFloatAttributeDescription : TypedUxmlAttributeDescription<float>

Constructors

Constructor

Description

UxmlFloatAttributeDescription()Constructor.

Properties

Property

Description

defaultValueAsStringThe default value for the attribute, as a string.

Methods

Method

Description

GetValueFromBagRetrieves the value of this attribute from the attribute bag. Returns the value if found; otherwise, it returns defaultValue.
TryGetValueFromBagAttempts to retrieve the value of this attribute from the attribute bag and returns true if found, otherwise false.

Inheritance