GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - sandrofigo/Delay-Unity3D: Simple delay class to execute code after a certain amount of time in Unity

BranchesTags
Open more actions menu

Latest commit

 

History

35 Commits
35 Commits

Folders and files

NameName
Last commit message
Last commit date
CHANGELOG.md
CHANGELOG.md
 
 
CHANGELOG.md.meta
CHANGELOG.md.meta
 
 
Delay.cs
Delay.cs
 
 
Delay.cs.meta
Delay.cs.meta
 
 
LICENSE
LICENSE
 
 
LICENSE.meta
LICENSE.meta
 
 
README.md
README.md
 
 
README.md.meta
README.md.meta
 
 
com.sandrofigo.delay.asmdef
com.sandrofigo.delay.asmdef
 
 
com.sandrofigo.delay.asmdef.meta
com.sandrofigo.delay.asmdef.meta
 
 
package.json
package.json
 
 
package.json.meta
package.json.meta
 
 

Repository files navigation

Delay

Simple delay class to execute code after a certain amount of time in Unity.

openupm

Installation

There are multiple ways to install this package into your project:

  • Add it to your project through OpenUPM (recommended)
  • Add the package to the Unity package manager using the HTTPS URL of this repository (recommended)
  • Download the whole repository as a .zip and place the contents into a subfolder in your assets folder
  • Fork the repository and add it as a submodule in git

Usage

using Timing;
using UnityEngine;

public class FooBar : MonoBehaviour
{
    public void Start()
    {
        Delay.Create(1f, () => Debug.Log("I will be executed after 1 second."));
        
        Delay.WaitUntil(() => Time.time >= 5f, () => Debug.Log("I will wait until the provided condition is true."));
    }
}

Collaboration

Support this project with a ⭐️, report an issue or if you feel adventurous and would like to extend the functionality open a pull request.

About

Simple delay class to execute code after a certain amount of time in Unity

Topics

delaysopenupmtimingunityunity-3dunity-scriptsunity2dunity3dunity3d-pluginutilityutility-classesutility-library

Resources

Readme
Activity

Stars

5 stars

Watchers

1 watching

Forks

1 fork
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.