PeriodicForceEffect.SetParametersWithEnvelope 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
設定效果的參數,並設定效果的信封。
public:
virtual void SetParametersWithEnvelope(float3 vector, float frequency, float phase, float bias, float attackGain, float sustainGain, float releaseGain, TimeSpan startDelay, TimeSpan attackDuration, TimeSpan sustainDuration, TimeSpan releaseDuration, unsigned int repeatCount) = SetParametersWithEnvelope;
void SetParametersWithEnvelope(float3 const& vector, float const& frequency, float const& phase, float const& bias, float const& attackGain, float const& sustainGain, float const& releaseGain, TimeSpan const& startDelay, TimeSpan const& attackDuration, TimeSpan const& sustainDuration, TimeSpan const& releaseDuration, uint32_t const& repeatCount);
public void SetParametersWithEnvelope(Vector3 vector, float frequency, float phase, float bias, float attackGain, float sustainGain, float releaseGain, System.TimeSpan startDelay, System.TimeSpan attackDuration, System.TimeSpan sustainDuration, System.TimeSpan releaseDuration, uint repeatCount);
function setParametersWithEnvelope(vector, frequency, phase, bias, attackGain, sustainGain, releaseGain, startDelay, attackDuration, sustainDuration, releaseDuration, repeatCount)
Public Sub SetParametersWithEnvelope (vector As Vector3, frequency As Single, phase As Single, bias As Single, attackGain As Single, sustainGain As Single, releaseGain As Single, startDelay As TimeSpan, attackDuration As TimeSpan, sustainDuration As TimeSpan, releaseDuration As TimeSpan, repeatCount As UInteger)
參數
一個向量,描述每個軸上效果的方向和大小。 每個個別座標軸的範圍都是 -1.0 到 1.0,而且與其他座標軸無關。 指定座標軸的負值會反轉座標軸的輸入值。
- frequency
-
Single
float
週期波在一秒內發生的次數。
- phase
-
Single
float
階段位移自定期電壓的來源,其中 0.0 等於零度位移,而 1.0 等於 360 度位移。 例如,0.25 的階段值會對應至 90 度的階段位移。
- bias
-
Single
float
在計算波浪之後和套用坡道或增益之前,要加入至大小的調整。 範圍介於 -1 和 1 之間。
- attackGain
-
Single
float
降低效果強度的百分比。
- sustainGain
-
Single
float
在持續效果時減少效果強度的百分比。
- releaseGain
-
Single
float
相應減少效果強度的百分比。
- repeatCount
-
UInt32
unsigned int
uint32_t
重複效果的次數。