Calling "Render" from Editor script

Forums: Calling "Render" from Editor script
A public forum for discussing and asking questions about the Octane for Unity Alpha

Moderator: ChrisHekman

Re: Calling "Render" from Editor script

Postby ChrisHekman » Tue Apr 09, 2019 11:39 am

ChrisHekman Tue Apr 09, 2019 11:39 am
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
OctaneRender Team
OctaneRender Team
Posts: 606
Joined: Wed Jan 18, 2017 3:09 pm

Return to Octane for Unity

Who is online

Users browsing this forum: No registered users and 5 guests

Sun Aug 09, 2020 2:24 pm [ UTC ]