From 8df96eeca466edb520d40f500df877c288f17388 Mon Sep 17 00:00:00 2001
From: Jedd Morgan <45512892+JR-Morgan@users.noreply.github.com>
Date: Tue, 26 Sep 2023 22:45:44 +0100
Subject: [PATCH] Updated SpeckleReceiver.cs
---
.../Runtime/Components/SpeckleReceiver.cs | 30 +++++++++----------
1 file changed, 15 insertions(+), 15 deletions(-)
diff --git a/Packages/systems.speckle.speckle-unity/Runtime/Components/SpeckleReceiver.cs b/Packages/systems.speckle.speckle-unity/Runtime/Components/SpeckleReceiver.cs
index e3ab1bc..ac86b67 100644
--- a/Packages/systems.speckle.speckle-unity/Runtime/Components/SpeckleReceiver.cs
+++ b/Packages/systems.speckle.speckle-unity/Runtime/Components/SpeckleReceiver.cs
@@ -77,20 +77,13 @@ public bool Cancel()
return true;
}
- ///
- /// Receive the selected object, and converts ToNative as children of
- /// This function is designed to be run as a coroutine
- ///
- ///
- /// StartCoroutine(mySpeckleReceiver.ReceiveAndConvert_Routine(null);
- /// Optional parent for the created root s
- /// A filter function to allow for selectively excluding certain objects from being converted
- /// function does not throw, instead calls , and calls upon completion
- ///
- ///
+ ///
+ ///
+ /// This function is designed to run as a coroutine i.e.
+ /// StartCoroutine(mySpeckleReceiver.ReceiveAndConvert_Routine());
+ ///
public IEnumerator ReceiveAndConvert_Routine(
- Transform? parent,
+ Transform? parent = null,
Predicate? predicate = null
)
{
@@ -134,9 +127,16 @@ public IEnumerator ReceiveAndConvert_Routine(
FinishOperation();
}
- ///
+ ///
+ /// Receive the selected object, and converts ToNative as children of
+ ///
+ /// Optional parent for the created root s
+ /// A filter function to allow for selectively excluding certain objects from being converted
+ /// function does not throw, instead calls , and calls upon completion
+ ///
+ ///
public async void ReceiveAndConvert_Async(
- Transform? parent,
+ Transform? parent = null,
Predicate? predicate = null
)
{