Page 1 of 1

Unity crash

Posted: 19 Oct 2017, 11:31
by elecman
When using Unity 217.1.0f3 and NoesisGUI 2.1.0b4, Unity crashes when entering play mode.

To reproduce:
-Add a quad primitive to the scene.
-Add a NoesisView component to the quad.
-Add an xaml asset to the NoesisView component.
-Press play. Unity will crash without warning.

It works correctly if a material is added which contains a render texture. It should throw an error which indicates a material with a render texture has to be added instead of crashing.

Re: Unity crash

Posted: 23 Oct 2017, 11:23
by sfernandez
Hi, I was able to reproduce, anyway could you please create a ticket in our bugtracker?
This way we can better keep track when bugs are solved.

Re: Unity crash

Posted: 25 Oct 2017, 05:00
by elecman
Ok, done. Issue nr 1167.

Re: Unity crash

Posted: 26 Oct 2017, 18:37
by jsantos
Thanks!

Re: Unity crash

Posted: 13 Dec 2017, 01:43
by elecman
This is supposed to be fixed in beta .10 but if the render texture is added to the emissive slot only, the xaml is rendered full screen instead of in world space.

I filed a new bug report, because this issue had been warned for already in the previous bug report.

Bug nr.
0001202

Re: Unity crash

Posted: 18 Dec 2017, 09:43
by sfernandez
Thanks for the report.

Related to this we are thinking of a new approach for the future. We would probably expose a Camera property in NoesisView that users will set. This way users will decide wether they want to render to texture or main screen depending on how they configure their camera, instead of us trying to guess looking at gameobject properties.