-
Notifications
You must be signed in to change notification settings - Fork 77
Conversation
2881173
to
614055e
Compare
614055e
to
246a8b2
Compare
workers/unity/Packages/com.improbable.gdk.tools/GenerateCode.cs
Outdated
Show resolved
Hide resolved
workers/unity/Packages/com.improbable.gdk.tools/GenerateCode.cs
Outdated
Show resolved
Hide resolved
@@ -204,7 +204,7 @@ public static void LaunchLocalDeployment() | |||
BuildConfig(); | |||
|
|||
var command = Common.SpatialBinary; | |||
var commandArgs = "local launch"; | |||
var commandArgs = "local launch --enable_pre_run_check=false"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this definitely needed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes because it will otherwise call prepare-for-run
under the hood - which will not work if schema is not in the default place (e.g. will break if schema is within the packages)
workers/unity/Assets/Playground/Resources/Prefabs/Common/MobileConnectionSplashScreen.prefab
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM % the two comments
{ | ||
if (!string.IsNullOrEmpty(schemaSourceDir)) | ||
{ | ||
var fullSchemaSourceDirPath = Path.Combine(UnityProjectRoot, schemaSourceDir); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note this will throw if you put invalid characters in the path.
Maybe check against https://docs.microsoft.com/en-us/dotnet/api/system.io.path.getinvalidpathchars?view=netframework-4.8 and add meaningful errors.
Sidenote - we can probably use this to fix the PATH errors people get with spatial
and dotnet
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks like Path.Combine
throws an ArgumentException
if any invalid characters are used
so might be good to catch that + add a suitable error
emptySchemaSourceDir = true; | ||
} | ||
|
||
if (emptySchemaSourceDir) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just move this into an else
block with if (!string.IsNullOrEmpty(schemaSourceDir))
Signed-off-by: Paul Balaji <[email protected]>
Signed-off-by: Paul Balaji <[email protected]>
Signed-off-by: Paul Balaji <[email protected]>
Signed-off-by: Paul Balaji <[email protected]>
Signed-off-by: Paul Balaji <[email protected]>
Signed-off-by: Paul Balaji <[email protected]>
… runs Signed-off-by: Paul Balaji <[email protected]>
Signed-off-by: Paul Balaji <[email protected]>
Signed-off-by: Paul Balaji <[email protected]>
db0ba0d
to
d919638
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Small refactoring suggestion
workers/unity/Packages/com.improbable.gdk.tools/GdkToolsConfiguration.cs
Show resolved
Hide resolved
{ | ||
var schemaSourceDir = SchemaSourceDirs[i]; | ||
|
||
if (!string.IsNullOrEmpty(schemaSourceDir)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Invert the if
condition and continue if its null or empty:
if (string.IsNullOrEmpty(schemaSourceDir))
{
errors.Add(...);
continue;
}
try
{
...
}
...
Signed-off-by: Paul Balaji <[email protected]>
@@ -1 +1 @@ | |||
13.7.1-gdk-for-unity | |||
13.7.1-gdk-for-unity |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
was that change intended?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not intended - but shouldn't make a difference
can make a mental note to remove new line for the next PR if needed
@@ -7,7 +7,7 @@ public struct BufferedTransform : IBufferElementData | |||
{ | |||
public Vector3 Position; | |||
public Vector3 Velocity; | |||
public Quaternion Orientation; | |||
public UnityEngine.Quaternion Orientation; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is that needed?
(same question for the other two files where you made that change)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, to avoid conflicts with the Quaternion
defined in the transform module schema - which now gets generated in the Improbable.Gdk.TransformSynchronization
namespace
Description
Tests
Documentation
Primary reviewers
If your change will take a long time to review, you can name at most two primary reviewers who are ultimately responsible for reviewing this request. @ mention them.