Class UnitySerializedFieldReflection
Reflection walk over a Unity-serialized type's fields — public or [SerializeField], never
[NonSerialized]. Backs every "seed every field, force a rollback, assert it all comes back" test
that proves a capture-restore mechanism is field-list-free rather than hand-maintained. Previously
duplicated byte-for-byte across SerenityExistingAssetRestoreTests, PlayerInputCreatorTests
and WaveCreatorTests.
Inherited Members
Namespace: Serenity.Tests.Shared
Assembly: Tests.dll
Syntax
public static class UnitySerializedFieldReflection
Methods
SerializedFieldsOf(Type)
Every field Unity serializes on type: public or [SerializeField],
never [NonSerialized].
Declaration
public static FieldInfo[] SerializedFieldsOf(Type type)
Parameters
| Type | Name | Description |
|---|---|---|
| Type | type |
Returns
| Type | Description |
|---|---|
| FieldInfo[] |