Component:TypeField: Difference between revisions

From Resonite Wiki
Automated: update component fields
Add info
 
Line 2: Line 2:
<translate>
<translate>
<!--T:1-->
<!--T:1-->
{{stub}}
{{Infobox Component
{{Infobox Component
|Image=TypeFieldComponent.png
|Image=TypeFieldComponent.png
|Name=Type Field
|Name=Type Field
}}
}}
The '''TypeField''' component is used to store a [[Type:Type|Type]] which is usually a reference to a C# class.


<!--T:2-->
<!--T:2-->
== Fields ==
== Fields ==
{{Table ComponentFields
{{Table ComponentFields
|Type|{{RootFieldType|SyncType}}|TypeAdv0=true|
|Type|{{RootFieldType|SyncType}}|TypeAdv0=true| The Type this component is storing.
}}
}}


<!--T:3-->
<!--T:3-->
== Usage ==
== Usage ==
This can be used with ProtoFlux to get the color of a Type or its full name.


<!--T:4-->
<!--T:4-->
== Examples ==
== Examples ==
{{stub}}


<!--T:5-->
<!--T:5-->
== Related Components ==
== See Also ==
* [[Component:ValueField]]
</translate>
</translate>
[[Category:ComponentStubs]]
[[Category:Components{{#translation:}}|Type Field]]
[[Category:Components{{#translation:}}|Type Field]]
[[Category:Components:Data{{#translation:}}|Type Field]]
[[Category:Components:Data{{#translation:}}|Type Field]]

Latest revision as of 03:34, 12 November 2024

Component image 
Type Field component as seen in the Scene Inspector

The TypeField component is used to store a Type which is usually a reference to a C# class.

Fields

Fields
Name Type Description
persistent Bool Determines whether or not this item will be saved to the server.
UpdateOrder Int Controls the order in which this component is updated.
Enabled Bool Controls whether or not this component is enabled.
Type direct SyncType The Type this component is storing.

Usage

This can be used with ProtoFlux to get the color of a Type or its full name.

Examples

This article or section is a Stub. You can help the Resonite Wiki by expanding it.


See Also