logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Struct PreviewOptionHit

    One option row an IViewPreviewRenderer built for the live-render preview: the option's own instantiated UnityEngine.RectTransform plus its TRANSITION target (if any), so the host window can overlay the selection highlight and hit-test/navigate clicks without knowing which view kind built it. The live-render counterpart of WireframeOptionHit.

    Inherited Members
    ValueType.Equals(object)
    ValueType.GetHashCode()
    ValueType.ToString()
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetType()
    Namespace: Serenity.Ui.Infrastructure.Editor.Preview
    Assembly: Serenity.UnityUi.Infrastructure.Editor.dll
    Syntax
    public readonly struct PreviewOptionHit

    Constructors

    PreviewOptionHit(RectTransform, string)

    Declaration
    public PreviewOptionHit(RectTransform rect, string transitionTarget)
    Parameters
    Type Name Description
    RectTransform rect
    string transitionTarget

    Fields

    Rect

    The option row's live RectTransform, as instantiated into the preview canvas.

    Declaration
    public readonly RectTransform Rect
    Field Value
    Type Description
    RectTransform

    TransitionTarget

    The option's TRANSITION target id, or null when the option is not a TRANSITION.

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