Change Environment Type
DraagonStorm
Posts: 748
How would I get the Environment type (None or Backdrop) and change it?
When I do a Scene.getBackdrop().clear(); it set the Environment Type to None, and I need to set it back to Backdrop.
Post edited by DraagonStorm on
Comments
Using Rob's standard code-crawling, one approach (though there's probably a better) might be:
to clear the backdrop and
to set it on.
The API for the Environment pane will change.
The Render To Backdrop sample shows how to set the backdrop.
-Rob
I tried the Render to BackDrop, and that's when I discovered that when you clear the backdrop, that sets the Type to None. I you no longer see the backdrop. You have to physically go Windows->Panes-Environment and set the Type back to BackDrop...
I want to be able to set the type to BackDrop with code, or at least check what the type is.
-Rob
Thank You! oBackdrop.visible = true; worked!