- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi everyone,
Unity has released two new versions - a 5.3.4 Final version and a 5.4 Beta version which is said by Unity to contain major new enhancements for areas such as VR performance, workflow and graphics rendering.
I installed the 5.4 beta and tested it with my Unity RealSense project. Once Unity updated the project files, I had a red error message generated multiple times by the TrackingAction and SendMessageAction SDK scripts..
*********
EnsureRunningOnMainThread is not allowed to be called from a MonoBehaviour constructor, call it in Awake or Start instead. Called from script 'TrackingAction' on game object. See "Script Serialization" page in the Unity Manual for further details. UnityEngine.Object:GetInstanceID()
BaseAction:.ctor() (at Assets/RSUnityToolkit/Internals/Actions Utils/BaseAction.cs:62)
VirtualWorldBoxAction:.ctor()
TrackingAction:.ctor()
*********
It does not seem to stop a RealSense project from working, but you annoyingly get the red errors generated in the console every time you run the project.
Following the clue in the error message to check line 62 of the BaseAction script (which provides variables for scripts such as TrackingAction), I found that deleting lines 58 to 68 removes the red errors and makes the RealSense project work perfectly again in Unity 5.4.
The Unity error message stated that the error was related to "serialization". And a comment in the BaseAction code says that the deleted code is related to serialization. So that definitely seems to be where the problem is sourced.
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I also found that Unity 5.4 beta generates yellow warning messages in the console about Blackberry and Web Player no longer being supported. So fix this, search in the Asset panel's search box for the script file 'CrossPlatformInputInitialize' (just searching for 'crossplatform' will be enough to locate it). Open it in the Unity script editor and delete the lines that make reference to Blackberry and Web Player and the yellow warnings will disappear.

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page