ErsanUityGUI
Topic Author
Posts: 2
Joined: 07 Jul 2023, 16:25

Can Noesis be attached to the camera only? (Unity)

09 Jul 2023, 12:11

Hello,

I just want to use rive animation but it stays in the background, what should I do? (star animation)

Image
 
User avatar
sfernandez
Site Admin
Posts: 3008
Joined: 22 Dec 2011, 19:20

Re: Can Noesis be attached to the camera only? (Unity)

10 Jul 2023, 12:20

Hi,

Inside a XAML rendering order is determined by the the order in the UI tree: children will be rendered on top of their parents, and the latest child will be rendered on top of previous children.
So if you have several RiveControls, and you want the stars rive animation to be on top of the rest, it just needs to be added after the other children:
<Grid>
  ...
  <noesis:RiveControl Source="robots.riv"/>
  <noesis:RiveControl Source="stars.riv"/>
</Grid>
Is this what you are asking for?
 
ErsanUityGUI
Topic Author
Posts: 2
Joined: 07 Jul 2023, 16:25

Re: Can Noesis be attached to the camera only? (Unity)

11 Jul 2023, 20:37

THX! But other objects are SpriteRenderer or UI element.
Hi,

Inside a XAML rendering order is determined by the the order in the UI tree: children will be rendered on top of their parents, and the latest child will be rendered on top of previous children.
So if you have several RiveControls, and you want the stars rive animation to be on top of the rest, it just needs to be added after the other children:
<Grid>
  ...
  <noesis:RiveControl Source="robots.riv"/>
  <noesis:RiveControl Source="stars.riv"/>
</Grid>
Is this what you are asking for?
 
User avatar
sfernandez
Site Admin
Posts: 3008
Joined: 22 Dec 2011, 19:20

Re: Can Noesis be attached to the camera only? (Unity)

12 Jul 2023, 11:15

You mean you want to mix Unity UI elements with NoesisGUI elements?
Depending on what exactly you want to achieve, you can probably use camera stacking to decide the rendering order of the different layers.

Who is online

Users browsing this forum: Ahrefs [Bot], Bing [Bot], Semrush [Bot] and 10 guests