Skip to content

Commit fcb5378

Browse files
MaxWang-MSkeveleigh
authored andcommitted
Merge pull request #10353 from MaxWang-MS/InteractableOnClickReceiver_fix
Add a parameterless constructor to InteractableOnClickReceiver
1 parent d61d330 commit fcb5378

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Assets/MRTK/SDK/Features/UX/Interactable/Scripts/Events/InteractableOnClickReceiver.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,11 @@ public class InteractableOnClickReceiver : ReceiverBase
2121
/// </summary>
2222
public InteractableOnClickReceiver(UnityEvent ev) : base(ev, "OnClick") { }
2323

24+
/// <summary>
25+
/// Creates receiver for raising OnClick events
26+
/// </summary>
27+
public InteractableOnClickReceiver() : this(new UnityEvent()) { }
28+
2429
/// <inheritdoc />
2530
public override void OnUpdate(InteractableStates state, Interactable source)
2631
{

0 commit comments

Comments
 (0)