I'm modifying align and origin values to animate views in and out of the screen. However, I also need to use align and origin to position a surface in one of the views. When this surface sets the align and origin values it seems to not take into account the setting of align and origin set on the parent view. Anyone know how to structure the render tree to have align and origin values take parent view settings into account?
Lets say view has align [1, 0] and origin [0,0] (pushed out of screen to the right) in this view there's a surface with align [0.5, 0.5] and origin [0.5, 0.5] (centered in view). This shows the surface in the center of the screen whilst I would like to have it in the center of the parent view.
You CAN chain modifiers, but remember
Modifiers
are a one to one relationship with theirRender Nodes
. You cannot accomplish your objective with using the sameModifier
for two different renderables.In your case you would be building a render tree and chaining your Render Nodes to each other. A root
RenderNode (View)
can be used to transition your chained Render Nodes off the screen.Click Here for a working Example
Let's Explain
The root node will be your entry node for the main view.
Create an off screen View Node and a splash View Node to be chained.
Now add them to their respective Render Nodes.
View
to the off screenView
Now you are ready to add
Renderables
with theirModifiers
to each Render Node respectively.