docs.unity3d.com
    Show / Hide Table of Contents

    Class RuntimeServices

    Series of services that can be used in editor or editor play mode

    Inheritance
    Object
    RuntimeServices
    Namespace: UnityEditor.Industrial.Configuring.UI
    Syntax
    public static class RuntimeServices

    Methods

    DirtyActiveScene()

    Dirties the active scene.

    Declaration
    public static void DirtyActiveScene()

    DirtyProduct(GameObject, Boolean)

    Dirties the product.

    Declaration
    public static void DirtyProduct(GameObject anyProductObject, bool value = true)
    Parameters
    Type Name Description
    GameObject anyProductObject

    Any product object.

    Boolean value

    if set to true [value].

    DirtyProduct(Product, Boolean)

    Dirties the product.

    Declaration
    public static void DirtyProduct(Product product, bool value = true)
    Parameters
    Type Name Description
    Product product

    The product.

    Boolean value

    if set to true [value].

    GameObjectVisibilityToRendererVisibility(VariantSet)

    A Utility Method that replaces all GameObjectVisibilityAssignment's with VisibilityAssignment

    Declaration
    [Obsolete("Please use GameObjectVisibilityToRendererVisibility(Product, VariantSet) instead.")]
    public static void GameObjectVisibilityToRendererVisibility(VariantSet variantSet)
    Parameters
    Type Name Description
    VariantSet variantSet

    The variant set.

    GameObjectVisibilityToRendererVisibility(VariantSet, Product)

    A Utility Method that replaces all GameObjectVisibilityAssignment's with VisibilityAssignment

    Declaration
    public static void GameObjectVisibilityToRendererVisibility(VariantSet variantSet, Product product)
    Parameters
    Type Name Description
    VariantSet variantSet

    The variant set.

    Product product

    GetPackageInfo()

    Gets the package information.

    Declaration
    public static PackageInfo GetPackageInfo()
    Returns
    Type Description
    PackageInfo

    PackageManager.PackageInfo.

    GetPackageVersion()

    Gets the package version.

    Declaration
    public static string GetPackageVersion()
    Returns
    Type Description
    String

    System.String.

    MakePrefabSceneDirty()

    Makes the prefab scene dirty.

    Declaration
    public static bool MakePrefabSceneDirty()
    Returns
    Type Description
    Boolean

    true if XXXX, false otherwise.

    ModifyAndSavePrefab(Action, MonoBehaviour)

    Modifies the and save prefab.

    Declaration
    public static void ModifyAndSavePrefab(Action action, MonoBehaviour obj)
    Parameters
    Type Name Description
    Action action

    The action.

    MonoBehaviour obj

    The object.

    SavePrefab(GameObject)

    Save the prefab

    Declaration
    public static void SavePrefab(GameObject gameObject)
    Parameters
    Type Name Description
    GameObject gameObject

    Any prefab game object

    SaveProduct(GameObject, Boolean)

    Saves the product.

    Declaration
    public static void SaveProduct(GameObject anyProductObject, bool force = false)
    Parameters
    Type Name Description
    GameObject anyProductObject

    Any product object.

    Boolean force

    if set to true [force].

    UpdateCacheQuery(Product)

    Updates the cache query.

    Declaration
    public static void UpdateCacheQuery(Product product)
    Parameters
    Type Name Description
    Product product

    The product.

    UpdateModelSetToLatestQueries(ModelSet, Transform)

    Updates the model set to latest queries.

    Declaration
    public static void UpdateModelSetToLatestQueries(ModelSet modelSet, Transform parent)
    Parameters
    Type Name Description
    ModelSet modelSet

    The model set.

    Transform parent

    The parent.

    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023