logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class UnityTransformApplier

    Service that applies TransformDelta scale changes to Unity transforms. Analogous to UnityMaterialApplier for material properties.

    Targets are registered with their TransformId and original scale is cached. When Apply is called, each entry in the delta is resolved and applied.

    Inheritance
    object
    UnityTransformApplier
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: Serenity.ProceduralExpression.Infrastructure.Services
    Assembly: Serenity.UnityProceduralExpression.Infrastructure.dll
    Syntax
    public class UnityTransformApplier

    Constructors

    UnityTransformApplier()

    Declaration
    public UnityTransformApplier()

    Properties

    TargetCount

    Gets the number of registered transform targets.

    Declaration
    public int TargetCount { get; }
    Property Value
    Type Description
    int

    Methods

    Apply(TransformDelta)

    Applies the transform delta to all registered targets. Scale is applied as a multiplier against the original scale.

    Declaration
    public void Apply(TransformDelta delta)
    Parameters
    Type Name Description
    TransformDelta delta

    The transform delta containing scale changes.

    CacheOriginalScales()

    Re-caches the original scale for all registered targets. Call this if the base scale changes at runtime.

    Declaration
    public void CacheOriginalScales()

    ClearTargets()

    Clears all registered transform targets.

    Declaration
    public void ClearTargets()

    RegisterTarget(TransformId, Transform)

    Registers a transform target for procedural scale animation. Caches the original local scale for reset.

    Declaration
    public void RegisterTarget(TransformId id, Transform transform)
    Parameters
    Type Name Description
    TransformId id

    Unique identifier for this transform target.

    Transform transform

    The transform to animate.

    ResetToOriginalScale()

    Resets all registered transforms to their original scale.

    Declaration
    public void ResetToOriginalScale()

    UnregisterTarget(TransformId)

    Unregisters a transform target.

    Declaration
    public void UnregisterTarget(TransformId id)
    Parameters
    Type Name Description
    TransformId id

    The identifier of the target to unregister.

    In this article
    © 2026 Serenity. All Rights Reserved