horvatha4
Hi!
I generate Node and Terrain from code and then save it as XML, I get this:
...
<component type="Terrain" id="2">
<attribute name="Is Enabled" value="false" />
<attribute name="Vertex Spacing" value="90 256 90" />
<attribute name="Patch Size" value="8" />
<attribute name="Is Occluder" value="true" />
</component>
</node>
But if I reproduce a terrain in the Urho Editor I get this:
...
<component type="Terrain" id="4">
<attribute name="Height Map" value="Image;Terrain/N489E0210_geo.png" />
<attribute name="Material" value="Material;Materials/Terrain.xml" />
<attribute name="Vertex Spacing" value="90 256 90" />
<attribute name="Patch Size" value="8" />
</component>
</node>
“Height Map” and “Material” attributes is not saved from C++ or they are not valid attributes?
Naturally, what I saved from C++, is appear as an empty Node in the Editor.
Arpi