docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class RuntimeUtility

    An ad-hoc collection of helpers, used by Cinemachine or its editor tools in various places

    Inheritance
    object
    RuntimeUtility
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: Unity.Cinemachine
    Assembly: solution.dll
    Syntax
    public static class RuntimeUtility

    Methods

    Name Description
    DestroyObject(Object)

    Convenience to destroy an object, using the appropriate method depending on whether the game is playing

    IsPrefab(GameObject)

    Check whether a GameObject is a prefab.
    For editor only - some things are disallowed if prefab. In runtime, will always return false.

    NormalizeCurve(AnimationCurve, bool, bool)

    Normalize a curve so that its X and Y axes range from 0 to 1

    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)