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
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
ChrisHekman
OctaneRender Team
OctaneRender Team
 
Posts: 416
Joined: Wed Jan 18, 2017 3:09 pm
Previous

Return to Octane for Unity


Who is online

Users browsing this forum: No registered users and 4 guests

Thu Nov 14, 2019 9:00 pm [ UTC ]