1 (edited by ragamoffyn 2016-10-24 08:52:19)

Topic: RWT and the HoloLens

Hello. I'm a newbie when it comes to this stuff, but googling didn't answer my question, so I hope it's ok to ask here.

Basically, I am getting many compiler errors when I try to build a Unity scene as a "Unity C# Project" when it contains a RWT object. Here are the steps I follow, in case there's something simple I'm missing:

1) Import RWT as a project asset, and update it to latest version.
2) Open the RWT window within Unity.
3) Copy in coordinates from the Helper.
4) Have RWT select the best settings.
5) Click Start.
6) Wait as the terrain is built.
7) When the terrain appears in the scene, open Build Settings.
8) Select Windows Store as the platform.
9) Set SDK to Universal 10 and Build Type to D3D.
11) Add open scenes to the scene.
12) Click Build.
13) Choose a destination folder and click OK.

The build will run for a few seconds and then stop and give several compiler errors. Most of the errors are of this type:

"Assets\Infinity Code\Real World Terrain\Scripts\RealWorldTerrainXMLExt.cs(102,24): error CS1061: 'XmlNode' does not contain a definition for 'SelectSingleNode' and no extension method 'SelectSingleNode' accepting a first argument of type 'XmlNode' could be found (are you missing a using directive or an assembly reference?)"

Is there something obvious I'm doing/not doing here?

Thanks for any help.

Re: RWT and the HoloLens

Hello.

This is because in WSA missed many of the classes and methods.
https://docs.unity3d.com/Manual/windows … types.html

In Online Maps (another asset), we have solved this problem by making your own wrapper for XML.

You have several ways to solve the problem:
1. Just remove the folder «Infinity Code / Real World Terrain» after generating your terrains.
In 99% of cases it is you no longer need.
You can re-import it if you want to use RWT again.
2. Move the script «RealWorldTerrainXMLExt.cs» into «Editor» folder.

Kind Regards,
Infinity Code Team.

Boost your productivity a lot and immediately using Ultimate Editor Enhancer. Trial and non-commerce versions available.

Re: RWT and the HoloLens

Thanks! I will try this.