文档

Unity Engine

Unity Engine

UxmlSerializedData

Generates an instance of the declaring element when the UxmlElementAttribute is used in a custom control.
阅读时间1 分钟最后更新于 1 个月前

Definition

public abstract class UxmlSerializedData

Methods

Method

Description

CreateInstanceReturns an instance of the declaring element.
DeserializeApplies serialized field values to a compatible visual element.

Static Methods

Method

Description

RegisterThis is used by the code generator when a custom control is using the UxmlElementAttribute. You should not need to call it.
ShouldWriteAttributeValueDetermines if an attribute should be applied during UxmlSerializedData.Deserialize.

Enums

Enum

Description

UxmlSerializedData.UxmlAttributeFlagsUsed to indicate if a field is overridden in a UXML file.