logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class ObjectFieldDropRecorder

    Stands in for IMGUI's object field in an inspector test: the drawer it hands out reports an object as dropped onto every field it draws, and remembers whether that field was told to accept scene objects. A batch run has no OnGUI pass to drive the real field through, so an inspector exposes a seam that takes this drawer in place of IMGUI's own.

    Inheritance
    object
    ObjectFieldDropRecorder
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    Namespace: Serenity.Tests.Shared.Editor
    Assembly: Serenity.Tests.Shared.Editor.dll
    Syntax
    public sealed class ObjectFieldDropRecorder

    Constructors

    ObjectFieldDropRecorder()

    Declaration
    public ObjectFieldDropRecorder()

    Properties

    FieldAllowedSceneObjects

    Whether the last field drawn accepted scene objects; null until a field is drawn.

    Declaration
    public bool? FieldAllowedSceneObjects { get; }
    Property Value
    Type Description
    bool?

    Methods

    Dropping(Object)

    Returns a drawer that drops dropped onto every field it draws.

    Declaration
    public Func<string, Object, Type, bool, GUILayoutOption[], Object> Dropping(Object dropped)
    Parameters
    Type Name Description
    Object dropped
    Returns
    Type Description
    Func<string, Object, Type, bool, GUILayoutOption[], Object>
    In this article
    © 2026 Serenity. All Rights Reserved