Re: Calling "Render" from Editor script
Posted: Tue Apr 09, 2019 11:39 am
The script that jalley posted should work. It just misses the following function:
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:
*If you want to drive everything from code, you will need to update the scene after setting the rendertarget
- Code: Select all
OctaneUnity.Scene.Instance.UpdateScene()
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