RollOffMode列挙型(Enum)
列挙型(Enum)日本語解説は準備中
ひとことで言うと
RollOffModeは、ロブロックス(Roblox)の列挙型(Enum)です。くわしい日本語解説は準備中のため、下に公式の説明(英語)を載せています。
公式の説明(英語):How Class.Sound|Sounds parented to a BasePart or Attachment attenuate (fade out) as the distance between the listener and the parent increases.
選べる値(4)
| 名前 | 値 | 説明 |
|---|---|---|
Enum.RollOffMode.Inverse | 0 | Volume attenuates from Sound.RollOffMinDistance in an inverse manner, mirroring how sounds attenuate in the real world. This is done through Sound.RollOffMinDistance/distance, where distance is the Vector3.Magnitude between the audio source and the audio listener. |
Enum.RollOffMode.Linear | 1 | Volume attenuates between Sound.RollOffMinDistance and Sound.RollOffMaxDistance with a linear relationship. This is done through (Sound.RollOffMaxDistance/distance)/(Sound.RollOffMaxDistance-Sound.RollOffMinDistance), where distance is the Vector3.Magnitude between the audio source and the audio listener. |
Enum.RollOffMode.LinearSquare | 2 | Volume attenuates between Sound.RollOffMinDistance and Sound.RollOffMaxDistance with a linear squared relationship. This is done through squaring Linear. |
Enum.RollOffMode.InverseTapered | 3 | A hybrid model which follows the Inverse model when close to Sound.RollOffMinDistance and the LinearSquare model when close to Sound.RollOffMaxDistance. This is done by taking the lesser of Inverse and LinearSquare. |
英語の説明とメンバーの一覧は、Roblox Creator Documentation(RollOffMode)をもとにしています(CC BY 4.0)。日本語の解説は、このサイトで独自に書いたものです。