remove misinformation, add RawOutput<T> |
Added category: Interface types |
||
| (3 intermediate revisions by one other user not shown) | |||
| Line 3: | Line 3: | ||
The '''IField<T>''' type is an [[Interface Type|Interface Type]] that designates the object it is applied to as something that is a field of type <code>T</code>. This includes anything that is exposed within the [[Scene Inspector]] UI. | The '''IField<T>''' type is an [[Interface Type|Interface Type]] that designates the object it is applied to as something that is a field of type <code>T</code>. This includes anything that is exposed within the [[Scene Inspector]] UI. | ||
In addition to every feature that [[Type:IValue|IValue]] implements, this | As with IValue<T>, IField<T> can in theory hold any type, but is only useful with [[value types]] in the FrooxEngine data model. | ||
In addition to every feature that [[Type:IValue|IValue<T>]] implements, this interface makes things implementing it: | |||
* Have the ability to be [[Drive|driven]]. | * Have the ability to be [[Drive|driven]]. | ||
| Line 23: | Line 25: | ||
[[Category:Type]] | [[Category:Type]] | ||
[[Category:Reference types]] | |||
[[Category:Interface types]] | |||
Latest revision as of 17:02, 25 August 2025

persistent, UpdateOrder, Enabled, and Value fields are of type Sync<T>, which implements IField. Reference is a SyncRef<Slot>, which is an IField<RefID>.The IField<T> type is an Interface Type that designates the object it is applied to as something that is a field of type T. This includes anything that is exposed within the Scene Inspector UI.
As with IValue<T>, IField<T> can in theory hold any type, but is only useful with value types in the FrooxEngine data model.
In addition to every feature that IValue<T> implements, this interface makes things implementing it:
- Have the ability to be driven.
- Synced by default, requiring a drive to become local.