{!See https://docs.google.com/document/d/1takg_GmIBBKKTj-GHZCwzxohpQz7Bhekivkk72kYMtE/edit for reference implementation of OneTrust, dataLayer and GTM} {!OneTrust Cookies Consent} {!OneTrust Cookies Consent end} {!dataLayer initialization push} {!dataLayer initialization push end} {!Google Tag Manager} {!Google Tag Manager end} Struct CinemachineImpulseManager.EnvelopeDefinition | Cinemachine | 2.6.0
docs.unity3d.com
"{0}" の検索結果

    目次を表示する/隠す

    Struct CinemachineImpulseManager.EnvelopeDefinition

    This defines the time-envelope of the signal. Thie raw signal will be scaled to fit inside the envelope.

    Inherited Members
    ValueType.Equals(object)
    ValueType.GetHashCode()
    ValueType.ToString()
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetType()
    Namespace: Cinemachine
    Assembly: solution.dll
    Syntax
    [Serializable]
    public struct CinemachineImpulseManager.EnvelopeDefinition

    Fields

    Name Description
    m_AttackShape

    Normalized curve defining the shape of the start of the envelope.

    m_AttackTime

    Duration in seconds of the attack. Attack curve will be scaled to fit. Must be >= 0

    m_DecayShape

    Normalized curve defining the shape of the end of the envelope.

    m_DecayTime

    Duration in seconds of the decay. Decay curve will be scaled to fit. Must be >= 0.

    m_HoldForever

    If true, then duration is infinite.

    m_ScaleWithImpact

    If checked, signal amplitude scaling will also be applied to the time envelope of the signal. Bigger signals will last longer

    m_SustainTime

    Duration in seconds of the central fully-scaled part of the envelope. Must be >= 0.

    Properties

    Name Description
    Duration

    Duration of the envelope, in seconds. If negative, then duration is infinite.

    Methods

    Name Description
    ChangeStopTime(float, bool)

    Change the envelope so that it stops at a specific offset from its start time. Use this to extend or cut short an existing envelope, while respecting the attack and decay as much as possible.

    Clear()

    Set the envelop times to 0 and the shapes to default.

    Default()

    Get an envelope with default values.

    GetValueAt(float)

    Get the value of the tenvelope at a given time relative to the envelope start.

    Validate()

    Call from OnValidate to ensure that envelope values are sane

    概要
    トップに戻る
    Copyright © 2023 Unity Technologies — 商標と利用規約
    • 法律関連
    • プライバシーポリシー
    • クッキー
    • 私の個人情報を販売または共有しない
    • Your Privacy Choices (Cookie Settings)