LogoLogo
Scripting DocsSupport
Sinespace
Sinespace
  • Welcome to Sinespace!
  • Quickstart
    • Get Started - Viewer
      • System Requirements
      • Viewer Installation
    • Get Started - SDK
      • SDK Setup
  • Sinespace Viewer
    • Viewer Basics
    • Home
    • Outfits
      • Outfit IDs
    • Socialising
    • Shopping
    • Audio Streaming
    • Settings
  • Sinespace SDK
    • SDK basics
    • Avatars
      • Clothing
        • Clothing Item Settings
        • Importing and Uploading Clothing
        • Designing Detailed Clothing
        • Layers Guide
        • Clothing Variations
        • Male Clothing Resource Files
        • Male Hair Resource Files
        • Female Clothing Resource Files
        • Female Hair Resource Files
        • Advanced Topics
          • Attachments Vs Skinned Clothing
          • Boots And Heels
          • Cloth Physics
          • How to upload avatars
            • Full Body Replacement Costumes (no custom animations)
            • Full Body Replacement Costumes (with custom animations)
      • Attachments
      • Uploading Tattoos
      • Skins
      • Gestures
        • Set Up
        • Single Person Animation
        • Multi-Person Animations
        • Animated Cameras
        • Props
        • Visual FX
      • Unified Clothing And Skin (Metal and Tessellate)
    • Animation
      • Animation Production Workflow
      • Animation Tools
    • Furniture
      • How to upload items as furniture
      • Adding Poses to Furniture
    • Games
      • Racing Games
      • Shooter games FPS
    • Quests
      • Two Step Quests
    • Regions
      • Upload Settings
      • Export Settings
      • Platform Settings
      • Submission
      • Management
      • Lighting
      • Lighting an Interior
      • Navigation bake
      • Occlusion bake
      • Post FX
      • Creating Web GL Friendly Regions
    • Vehicles
    • Components
      • General
      • List
      • Components by Function
      • AnimatedVendorConsole
      • AnimationVendor
      • ATM
      • AudioReactive
      • AvatarAnimationEffect
      • AvatarAudioEffect
      • AvatarEffect
      • AvatarEffectCamera
      • AvatarEffectCameraMovement
      • AvatarEffectLUT
      • AvatarEffectNPC
      • AvatarEffectObject
      • AvatarEffectSnapshot
      • AvatarMultiAnimationEffect
      • BoatPhysics
      • BoatVehicle
      • Browser Surfaces
      • Buoyancy
      • CarPhysics
      • CarVehicle
      • CatalogVendor
      • ClickableActivator
      • ClickableVendor
      • ClickableWebsite
      • Clothing Item Settings
      • Day/night cycle
      • EdyCompatibleVehicle
      • FocusCamera
      • FollowAvatar
      • GravityZone
      • HoverVehicle
      • InventoryVendor
      • LensFlareDistance
      • LightDistance
      • LookAtController
      • Mailbox
      • MusicZone
      • NPCCrowd
      • PlanePhysics
      • PlaneVehicle
      • Pool
      • ProductVendor
      • Proximity Activator
      • QuestCounterClickable
      • QuestCounterProximity
      • QuestDesigner
      • QuestGameObject
      • QuestNPC
      • RenamerNPC
      • SailStrip
      • SceneBackgroundMusic
      • SceneSaveSettings
      • SeatImproved
      • SliderPhysics
      • SliderVehicle
      • StartableClothingRequirement
      • StartableGestureRequirement
      • StartableItemRequirement
      • StartableRoomVisit
      • StartableSitRequirement
      • StartableSnapshot
      • StartableTeleport
      • StartableTimedCounter
      • Statue
      • StreamingBackgroundMusic
      • SubstituteAnimationZone
      • SyncedPhysicsDoodad
      • TeleportLocal
      • TeleportPad
      • TeleportWorld
      • TerrainHolePunch
      • Timer
      • Tip Jars
      • TrailForwardVelocity
      • UpgradeAccountNPC
      • VehicleRespawn
      • VehicleSpawnStation
      • Virtual Goods
      • VIPCollider
      • VoiceZone
      • Volumetric Light
      • WanderingNPC
      • Simple State Machine
      • Simple Networking
      • Vehicle Respawn Station
      • Vehicle Respawn
      • Vehicle Physical Animator
      • Clothing Previewer
      • Clothing Extra Pattern
      • Scripting Runtime
      • Speedometer
      • Modular Buoyancy
      • Meta Balls
      • Collider Trigger Activator
      • Move Object
      • Scripting Resources
      • Scripting Events
      • Scripting Data
    • Extensions
    • General Info
      • Certified Creators Program
      • Content Processing
      • Content Protection
      • Review Policies
      • Intellectual Property
      • Unity Portal
    • Creating A Shop
    • Creating Items
      • Making Animated Doors
      • Spawnable Objects: Uploading and Spawning Objects in Space
      • Creating Menus for Interactive Objects in SineSpace
    • Videos
      • Basic Clothes
      • Volumetric Lighting
  • Curator Dashboard
    • Overview
    • Items
      • Currencies
      • Editing Item Info
      • Item Statuses
    • Transaction
    • Payout
    • Grid Management
  • Sinespace API
  • Registration & Grid API
  • Grids
    • Grid Basics
    • White Label Grids
    • Grey Label Grid
    • Customisation
  • Templates
    • Avatar Templates
  • Policies
    • EULA
      • Curator EULA
      • Payment EULA
    • Review Policies
      • End-User License Agreement
    • Content Protection
    • Intellectual Property
  • More Info
    • FAQ
    • Bug Reporting
    • Support Tickets
  • World Streaming
    • Troubleshooting
    • Network ports and firewalls
    • MacOS Permissions
Powered by GitBook

Sinespace® is a registered trademark of Sine Wave Entertainment Ltd, All Rights Reserved.

On this page

Was this helpful?

Export as PDF
  1. Sinespace SDK
  2. Components

Timer

Timer is a component which offers a simple time counter, which includes multi-functions to use. By default, it's a increasing timer. If you want a count down type, pick the option for "count down".

PreviousTerrainHolePunchNextTip Jars

Last updated 1 year ago

Was this helpful?

This is a new component and may not included in the current Editor pack. It would add in the builds later(after Feb 14, 2019)

Usage

Fill the Target time in seconds if you want the timer to stop by certain time. It is necessary if you choose "count down" type.

Now there are 3 format: HHMMSS is stand for hours:minutes:seconds, MMSS means minutes:seconds, and the last is only display seconds.

If you need to display the fraction after seconds, pick "Show fraction" option.

You can add Events here, and trigger them when:

1. Pick the option "Call Event When Timer End", the events will be fired when the timer reaches the Target time(or decrease to 0 from the Target time if count down);

2. Fire the events once in a delay after the timer start if the value here is above zero;

3. Fire the events every certain time by the value set if it is above zero;

All these method can be used together, which means you can trigger the event after a short while for the first time, then repeat it periodically, and trigger it last time when the timer reaches the preset end.

The component offer a default output method, so you can directly drag a game object with Text Component into the slot, the timer will display in that Text Label. But if you want to construct your own way for output, call the function OutputByFormat(), which returns the string of current value of timer.

To start/pause the timer by event, change the bool value of timeRunning, where true start the timer and false pause it.

To stop and reset the timer, call the function of ResetTimer(), it will set the timer back to the initial state you set.