Super Bomber Kit
Search Results for

    Show / Hide Table of Contents

    Class TransformExtensions

    Inheritance
    object
    TransformExtensions
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: BomberDogs.Extensions
    Assembly: Assembly-CSharp.dll
    Syntax
    public static class TransformExtensions

    Methods

    | Edit this page View Source

    SetZPosition(Transform, float)

    Change only z position

    Declaration
    public static void SetZPosition(this Transform transform, float z)
    Parameters
    Type Name Description
    Transform transform

    transform

    float z

    new Z value

    | Edit this page View Source

    SnapPosition(Transform)

    Centers to the middle of each 1-meter square in the scene space. For example, 0.01 becomes 0.5, 0.99 becomes 0.5, 1.01 becomes 1.5, and so on.

    Declaration
    public static void SnapPosition(this Transform transform)
    Parameters
    Type Name Description
    Transform transform
    • Edit this page
    • View Source
    In this article
    Back to top