You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 18, 2022. It is now read-only.
We are accepting issues and we want your feedback.
Description
Describe your issue.
When I try to define a component and a type with a field of type Coordinates, I am able to generate the code just fine and no errors in the Unity console. But as soon as the project refreshes (by editing a script or playing the scene), in the unity console I get the error:
InvalidCastException: Specified cast is not valid.
Improbable.Gdk.Debug.MonoBehaviourInspector.OnEnable () (at Library/PackageCache/[email protected]/MonoBehaviourInspector.cs:46)
I am able to play the scene just fine and everything works as expected.
Schema file for reference:
package player;
import "improbable/gdk/core/common.schema";
import "improbable/standard_library.schema";
type ViveTransform
{
improbable.Coordinates position = 1;
improbable.Coordinates rotation = 2;
}
component PlayerViveTransform
{
id = 22003;
ViveTransform head = 1;
ViveTransform left_controller = 2;
ViveTransform right_controller =3;
}
Steps to reproduce
Create a schema file and define a type that has a field of type Coordinates
Generate the code
Modify any script or play the scene so that the project reloads
Environment
SpatialOS SDK version for project 'unity_gdk': 14.7.0.
'spatial' command-line tool version: 20210118.102041.1cea892dd1.
Unity Version 2020.1.2
The text was updated successfully, but these errors were encountered:
marianna-kon
changed the title
InvalidCastException with Coordinates in User Defined Type
InvalidCastException with Coordinates field in User Defined Type
Feb 26, 2021
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
We are accepting issues and we want your feedback.
Description
Describe your issue.
When I try to define a component and a type with a field of type Coordinates, I am able to generate the code just fine and no errors in the Unity console. But as soon as the project refreshes (by editing a script or playing the scene), in the unity console I get the error:
I am able to play the scene just fine and everything works as expected.
Schema file for reference:
Steps to reproduce
Environment
SpatialOS SDK version for project 'unity_gdk': 14.7.0.
'spatial' command-line tool version: 20210118.102041.1cea892dd1.
Unity Version 2020.1.2
The text was updated successfully, but these errors were encountered: