docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class ContextBase

    Inheritance
    object
    ContextBase
    BuildContext
    Implements
    IDisposable
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: Unity.Build
    Assembly: solution.dll
    Syntax
    public abstract class ContextBase : IDisposable

    Properties

    Name Description
    BuildConfigurationAssetGUID

    The build configuration asset GUID.

    BuildConfigurationAssetPath

    The build configuration asset path.

    BuildConfigurationName

    The build configuration name.

    Values

    List of all values stored.

    Methods

    Name Description
    Dispose()

    Provides a mechanism for releasing unmanaged resources.

    GetOrCreateValue<T>()

    Get value of type T if found. Otherwise a new instance of type T constructed using TypeConstruction utility and then set on this build context.

    GetValueOrDefault<T>()

    Get value of type T if found. Otherwise a new instance of type T constructed using TypeConstruction utility. The build context is not modified.

    GetValue<T>()

    Get value of type T if found, otherwise null.

    HasValue<T>()

    Determine if the value of type T exists.

    RemoveValue<T>()

    Remove value of type T from this build context.

    SetValue<T>()

    Set value of type T to this build context to its default using TypeConstruction utility.

    SetValue<T>(T)

    Set value of type T to this build context.

    In This Article
    Back to top
    Copyright © 2024 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)