logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    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.

    Inheritance
    object
    UnitySerializedFieldReflection
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    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[]
    In this article
    © 2026 Serenity. All Rights Reserved