logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class SignalEmitterComponentUnityEventBindingTests

    Pins the contract that lets a designer wire SignalEmitterComponent into a Button's On Click without writing C#.

    Inheritance
    object
    SignalEmitterComponentUnityEventBindingTests
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: Serenity.EventDispatcher.Tests.Editor
    Assembly: Serenity.EventDispatcher.Tests.Editor.dll
    Syntax
    public class SignalEmitterComponentUnityEventBindingTests
    Remarks

    A UnityEngine.Events.UnityEvent binds a UnityEngine.Events.UnityAction, so only a void method can be invoked. A bool-returning one serializes into the persistent-call list happily and then throws on the first click in Play Mode, which is invisible to every edit-mode check — hence these tests bind the delegate the same way Unity does at runtime rather than merely asserting the methods exist.

    Constructors

    SignalEmitterComponentUnityEventBindingTests()

    Declaration
    public SignalEmitterComponentUnityEventBindingTests()

    Methods

    DispatchFirstSignal_IsBindableAsAUnityAction()

    Declaration
    public void DispatchFirstSignal_IsBindableAsAUnityAction()

    DispatchFirst_TheBoolForm_CannotBeBound_WhichIsWhyTheVoidFormExists()

    Declaration
    public void DispatchFirst_TheBoolForm_CannotBeBound_WhichIsWhyTheVoidFormExists()

    DispatchSignal_IsBindableAsAOneStringUnityAction()

    Declaration
    public void DispatchSignal_IsBindableAsAOneStringUnityAction()
    In this article
    © 2026 Serenity. All Rights Reserved