docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct SamplingTime

    A sampling time is used to uniquely identfy a sub-sampled animation frame.

    Implements
    IDebugObject
    IDebugDrawable
    Namespace: Unity.Kinematica
    Assembly: solution.dll
    Syntax
    [Data("Sampling Time", DataFlags.SelfInputOutput)]
    public struct SamplingTime : IDebugObject, IDebugDrawable
    Remarks

    A sampling time is a construct that is similar in nature to a time index. It serves exactly the same purpose but carries additional information that enables sub-sampling.

    Fields

    Name Description
    theta

    Denotes a blend weight between 0 and 1 that control sub-frame sampling.

    timeIndex

    Denotes the time index this sampling time refers to.

    Properties

    Name Description
    Invalid

    Invalid sampling time.

    IsValid

    Determines if the given sampling time is valid or not.

    debugIdentifier
    frameIndex

    Denotes the frame index relative to the beginning of the segment that this sampling time refers to.

    segmentIndex

    Denotes the segment this sampling time refers to.

    Methods

    Name Description
    Create(TimeIndex, float)

    Create a sampling time from a time index and a theta value.

    Draw(Camera, ref MotionSynthesizer, DebugMemory, SamplingTime, ref DebugDrawOptions)

    See Also

    TimeIndex
    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)