Geometry Mask for scrollable Animation timeline

Is it possible to create a mask for geometry? I have a slider that represents an animation timeline and I want only part of the slider to be visible at once, the part in a container. (Similar to html's overflow hidden). I'm new to Unity so any help would be awesome :)
4 Replies
andybak
andybak3y ago
Not easily. Better to cheat. Keep the horizontal bit static and move markers relative to it.
Seethrough
SeethroughOP3y ago
Ahh ok, I was hoping for simpler way of doing it but that shouldn't be too hard. Thanks for the help
andybak
andybak3y ago
I think the only other way would involve multiple render passes or similar and would probably be busy as complex. Unity UI components can do this but not sure how easy they would be to wire up to existing functionality. Plus they are inherently 2d.
Seethrough
SeethroughOP3y ago
yeah, I saw it's possible to do with pure OpenGL but Unity doesn't expose the feature probably for good reason
Want results from more Discord servers?
Add your server