View Issue Details

IDProjectCategoryView StatusLast Update
0001781NoesisGUIUnitypublic2020-08-29 23:43
Reporterjsantos Assigned Tojsantos  
PrioritynormalSeverityfeature 
Status resolvedResolutionno change required 
Product Version3.0.4 
Target Version3.0.5 
Summary0001781: Support Continuos Rendering flag when rendering to main camera
Description

As explained here

https://www.noesisengine.com/forums/viewtopic.php?f=3&t=2076

having support for this can save a lot of battery in games that only render UI

PlatformAny

Activities

jsantos

jsantos

2020-08-29 23:40

manager   ~0006602

Last edited: 2020-08-29 23:43

I am going to close this without changes because they are not needed. The API already supports all scenarios. When NoesisGUI is being rendered to a main camera, as explained in the documentation, 'NeedsRendering' must be used with a manually repainted camera. Manually repainted cameras must be disabled (the Camera component, not the gameobject) and Render must be invoked when needed, for example attaching the following component:


public class Redraw : MonoBehaviour
{
void Update()
{
NoesisView view = gameObject.GetComponent<NoesisView>();
Camera camera = gameObject.GetComponent<Camera>();

    if (view.NeedsRendering)
    {
        camera.Render();
    }
}

}


NOTE: I did a minimal change, 'Continuous Rendering' inspector property is now only visible when rendering to texture.

Issue History

Date Modified Username Field Change
2020-08-22 11:47 jsantos New Issue
2020-08-22 11:47 jsantos Assigned To => jsantos
2020-08-22 11:47 jsantos Status new => assigned
2020-08-22 11:47 jsantos Target Version => 3.0.5
2020-08-22 11:47 jsantos Description Updated
2020-08-29 23:40 jsantos Status assigned => resolved
2020-08-29 23:40 jsantos Resolution open => no change required
2020-08-29 23:40 jsantos Note Added: 0006602
2020-08-29 23:40 jsantos Note Edited: 0006602
2020-08-29 23:41 jsantos Note Edited: 0006602
2020-08-29 23:43 jsantos Note Edited: 0006602
2020-08-29 23:43 jsantos Note Edited: 0006602
2020-08-29 23:43 jsantos Note Edited: 0006602
2025-10-10 13:29 jsantos Category Unity3D => Unity