Confine UI keeps a UI element clamped inside its parent. It is designed for UI elements that move. It's great for tooltips, speech bubbles, and offscreen indicators.Confine UI is perfect for when you have non-static UI that follows an object. It ensures that no part of the element goes beyond its parent. It can be used in many different projects. Possible use cases:Showing the position of an off-screen characterWarning the player about the position of an off-screen projectileSpeech-bubble that follows character but should not go off-screenTooltips that follows mouse-cursorConfine UI is a single script that can be placed on a UI element. Once placed, you just have to call ConfinePosition to clamp that UI element inside its parent.Additionally, you can customize how much padding the confined element should have between itself and its parent.FeaturesConfinePosition() method for clamping a child UI element inside its parentAbility to set x and y padding between child and its parentThree example scenesEasy setup


