logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class PreviewWireframeContext

    Everything an IViewPreviewRenderer needs to draw one structural-wireframe frame: the definition, the canvas area to draw into, and the shared SerenityUiWireframePainter — the window's single wireframe drawing collaborator, which already dispatches by definition type and owns the switcher tab-click state a live-render composite renderer resolves its active child through too.

    Inheritance
    object
    PreviewWireframeContext
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    Namespace: Serenity.Ui.Infrastructure.Editor.Preview
    Assembly: Serenity.UnityUi.Infrastructure.Editor.dll
    Syntax
    public sealed class PreviewWireframeContext

    Constructors

    PreviewWireframeContext(UnityViewDefinition, Rect, SerenityUiWireframePainter)

    Declaration
    public PreviewWireframeContext(UnityViewDefinition definition, Rect canvas, SerenityUiWireframePainter painter)
    Parameters
    Type Name Description
    UnityViewDefinition definition
    Rect canvas
    SerenityUiWireframePainter painter

    Fields

    Canvas

    The canvas area to draw into, in window GUI space.

    Declaration
    public readonly Rect Canvas
    Field Value
    Type Description
    Rect

    Definition

    The definition to draw.

    Declaration
    public readonly UnityViewDefinition Definition
    Field Value
    Type Description
    UnityViewDefinition

    Painter

    The shared wireframe drawing collaborator.

    Declaration
    public readonly SerenityUiWireframePainter Painter
    Field Value
    Type Description
    SerenityUiWireframePainter
    In this article
    © 2026 Serenity. All Rights Reserved