{!See https://docs.google.com/document/d/1takg_GmIBBKKTj-GHZCwzxohpQz7Bhekivkk72kYMtE/edit for reference implementation of OneTrust, dataLayer and GTM} {!OneTrust Cookies Consent} {!OneTrust Cookies Consent end} {!dataLayer initialization push} {!dataLayer initialization push end} {!Google Tag Manager} {!Google Tag Manager end} Class Looper | App UI | 0.6.5
docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class Looper

    An object that contains its own message queue and its own running loop for dequeuing messages to pass them to Handler targets.

    Inheritance
    object
    Looper
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: Unity.AppUI.Core
    Assembly: solution.dll
    Syntax
    public class Looper

    Constructors

    Name Description
    Looper()

    Default constructor.

    Looper(IVisualElementScheduler)

    Default constructor using the Unity UI-Toolkit VisualElement scheduler to run the loop.

    Properties

    Name Description
    inLoop

    Check if the Looper is currently active.

    queue

    The looper's message queue.

    Methods

    Name Description
    Loop()

    Start the loop execution.

    Quit()

    Promptly stop the loop execution and clear the remaining message without handling them. If you want to safely stop the execution of the loop and handle remaining messages in the queue, use SafelyQuit().

    SafelyQuit()

    Stop the loop execution but handle all remaining messages in the queue before clearing it.

    In This Article
    Back to top
    Copyright © 2023 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)