Page 2 of 2

Re: Calling "Render" from Editor script

PostPosted: Tue Apr 09, 2019 11:39 am
by ChrisHekman
The script that jalley posted should work. It just misses the following function:

Code: Select all

This has recently been exposed and should update any changes made to the unity scene.

If you want to automatically start rendering from C# you can do the following:
Code: Select all
OctaneUnity.Scene.Instance.RenderTarget = m_MyRenderTargetComponent.RenderTarget;

*If you want to drive everything from code, you will need to update the scene after setting the rendertarget