Skip to content
This repository was archived by the owner on Mar 24, 2022. It is now read-only.

Latest commit

Β 

History

History
31 lines (26 loc) Β· 1.01 KB

File metadata and controls

31 lines (26 loc) Β· 1.01 KB

Offest UI

Offest demo image

Description

This UI example is inspired by games such as No Man's Sky and Destiny, where the UI offsets to the Joystick/Mouse movement. The black bars included are optional as the container is offset, not the children individually.

Supported aspect ratios

  • 5:4 βœ…
  • 4:3 βœ…
  • 3:2 βœ…
  • 16:10 βœ…
  • 16:9 βœ…

Supported Platforms

  • Editor βœ…
  • Standalone βœ…
  • UWP βœ…
  • Mobile ❌

Console

  • Xbox One βœ…
  • PS4 βœ…

Parameters

  • Offest UI
    • X Clamp Max - The clamp on the offset of the container's local x position.
    • Y Clamp Max - The clamp on the offset of the container's local y position.
    • Blackbar Percentage - The percentage of black bar covering the screen. 25% would be 50% of the screen covered, because there is a top and bottom bar.
    • Sensitivity - How sensitive the offset is to player input.
    • Invert Offset - If the offset is oposite to the player's input or not.
    • Controller Offset - You can disable offset for controllers.