{!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 BurstHelper | Unity Logging | 1.1.0-pre.3
docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class BurstHelper

    Helper functions for Burst

    Inheritance
    object
    BurstHelper
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: Unity.Logging
    Assembly: solution.dll
    Syntax
    [BurstCompile]
    public static class BurstHelper

    Properties

    Name Description
    IsBurst

    Checks if a method is called from a managed or Burst environment.

    IsBurstEnabled

    Returns True if Burst is enabled. Can be called from Burst of a managed environments

    IsManaged

    Checks if a method is called from a managed or Burst environment.

    Methods

    Name Description
    AssertMustBeBurstCompiled()

    Throws / Debug.LogError-s if IsBurstEnabled is true and this is called from a managed environment

    CheckThatBurstIsEnabled(bool)

    Checks if Burst is enabled, caches the result. Should be called from a managed environment

    DebugLogIsBurstEnabled()

    Calls Debug.Log that prints if Burst enabled of not

    DebugLogIsManaged()

    Calls Debug.Log that prints if this is a managed or Burst environment

    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)