Survival Template Pro
Roadmap
  • Welcome!
  • Getting Started
    • Installation Guide
      • Demo Maps
    • Scene Setup
    • Frequently Asked
    • Integrations
  • Player
    • Character
    • Modules & Behaviours
      • Inventory
        • Item Container
      • Movement
      • Camera
      • Health
      • Building
      • Object Carry
      • Wieldable
      • Interaction
      • Crafting
      • Sleep
      • Audio
  • User Interface
    • UI Behaviours Manager
    • Behaviours
      • UI_Inventory
      • UI_Damage
      • UI_Vitals
      • UI_Wieldables
      • UI_Interaction
      • UI_Sleep
  • Interaction
    • Interactable
      • Demo Interactables
    • Extension
  • Inventory
    • Create Item
      • Item Info
      • Item Settings
      • Properties & Tags
      • Item Pickup
  • Wieldables
    • Overview
  • Surfaces
    • Create Surface
    • Code Examples
Powered by GitBook
On this page

Was this helpful?

Export as PDF
  1. User Interface
  2. Behaviours

UI_Sleep

Here you'll learn what each UI Sleeping behaviour does.

Sleep UI

Canvas Group: The canvas group used to fade the sleep UI in & out.

Max Canvas Alpha: The max alpha that will be reached when fading in.

Canvas Lerp Speed: The speed at which the sleep UI will be faded in & out.

Current Time Text: A UI text component that's used for displaying the current time while sleeping.

Background Rect: The background rect of this UI piece.

Animator: Reference to the animator used for the sleeping UI.

Show Trigger: The "show" animator trigger.

Hide Trigger: The "hide" animator trigger.

Number of Templates: How many time templates should be spawned each side.

Time Text Template: A prefab with a text component on it that will be instantiated.

Text Size Over Distance: How will the text scale over the duration of its lifetime.

Text Y Position Over Distance: How will the text y position change over the duration of its lifetime.

Text Color Over Distance: How will the color of the text change over the duration of its lifetime.

PreviousUI_InteractionNextInteractable

Last updated 3 years ago

Was this helpful?