I want to render a Unity 3d scene using Octane for unity. I know that it is possible using the octane renderer gui but instead i want to implement that working through my c# script. I want to automate the whole process.
I have achieved some progress in it but unable to start the rendering for the first time.
following is the code that i am using -
- Code: Select all
public class CreateRender : MonoBehaviour
public GameObject pbrObject;
public void StopRendering()
public void PauseRendering()
public void RestartRendering()
public void StartRendering()
public void ContinueRendering()
All of these functions are working but only after i click on Render button on PBR Render Target component.
For the first time i need to click on Render button and it loads and compile the scene after that the PBRViewport is opened and i can use my above code.
So in my StartRendering() function i want the working of Render button of PBRRenderTarget.
I have also tried doing the same through LUA script in the script editor on octane unity. But unable to achieve any success in that also.
Please reply asap.
Thanks in Advance