![]() |
CRIWARE Unity Plugin Manual
Last Updated: 2025-05-08
|
3D sound source object More...
Inherits CriDisposable.
Classes | |
| struct | Config |
| Structure for 3D sound source configuration More... | |
Public Member Functions | |
| CriAtomEx3dSource (bool enableVoicePriorityDecay=false, uint randomPositionListMaxLength=0) | |
| Creates a 3D sound source object More... | |
| override void | Dispose () |
| Discards a 3D sound source object More... | |
| void | Update () |
| Updates the 3D sound source More... | |
| void | ResetParameters () |
| Initializes 3D sound source parameters More... | |
| void | SetPosition (float x, float y, float z) |
| Sets the position of the 3D sound source More... | |
| void | SetVelocity (float x, float y, float z) |
| Sets the velocity of the 3D sound source More... | |
| void | SetOrientation (Vector3 front, Vector3 top) |
| Sets the orientation of the 3D sound source More... | |
| void | SetConeOrientation (float x, float y, float z) |
| Sets the orientation of the sound cone of the 3D sound source More... | |
| void | SetConeParameter (float insideAngle, float outsideAngle, float outsideVolume) |
| Sets the sound cone parameters of the 3D sound source More... | |
| void | SetMinMaxDistance (float minDistance, float maxDistance) |
| Sets the minimum/maximum distances of the 3D sound source More... | |
| void | SetInteriorPanField (float sourceRadius, float interiorDistance) |
| Sets the interior Panning boundary distance of the 3D sound source More... | |
| void | SetDopplerFactor (float dopplerFactor) |
| Sets the Doppler coefficient of the 3D sound source More... | |
| void | SetVolume (float volume) |
| Sets the volume of the 3D sound source More... | |
| void | SetMaxAngleAisacDelta (float maxDelta) |
| Sets the maximum amount of change in angle AISAC control value More... | |
| void | SetAttenuationDistanceSetting (bool flag) |
| Sets the distance attenuation More... | |
| bool | GetAttenuationDistanceSetting () |
| Gets distance attenuation settings More... | |
| void | SetRandomPositionConfig (CriAtomEx.Randomize3dConfig?config) |
| Settings related to position randomization of 3D sound sources More... | |
| void | SetRandomPositionList (Vector3[] positionList) |
| Sets the list of coordinates to be used to randomize the position of a 3D sound source More... | |
| void | Set3dRegion (CriAtomEx3dRegion region3d) |
| Sets the 3D region More... | |
| void | SetListenerBasedElevationAngleAisacControlId (ushort aisacControlId) |
| Sets the listener reference elevation AISAC control setting ID More... | |
| void | SetSourceBasedElevationAngleAisacControlId (ushort aisacControlId) |
| Sets the sound source reference azimuth AISAC control ID More... | |
| void | SetDistanceAisacControlId (ushort aisacControlId) |
| Sets the Distance AISAC Control ID More... | |
| bool | IsDestroyable () |
| Check if the 3D sound source can be discarded More... | |
| CriAtomEx.NativeVector | GetPosition () |
| Getting the position of the 3D sound source More... | |
3D sound source object
|
inline |
Creates a 3D sound source object
| enableVoicePriorityDecay | Enables voice priority attenuation according to the distance |
| randomPositionListMaxLength | Gets the maximum number of elements that can be in the coordinates list used for position randomization of a 3D sound source |
|
inline |
Discards a 3D sound source object
|
inline |
Updates the 3D sound source
: // 音源の作成 CriAtomEx3dSource source = new CriAtomEx3dSource(); : // 音源の位置を設定 source.SetPosition(0.0f, 0.0f, 1.0f);
// 音源の速度を設定 source.SetVelocity(1.0f, 0.0f, 0.0f);
// 注意)この時点では音源の位置や速度はまだ変更されていません。
// 変更の適用 source.Update(); :
|
inline |
Initializes 3D sound source parameters
|
inline |
Sets the position of the 3D sound source
| x | X coordinate |
| y | Y coordinate |
| z | Z coordinate |
|
inline |
Sets the velocity of the 3D sound source
| x | Velocity along X axis |
| y | Velocity along Y axis |
| z | Velocity along Z axis |
|
inline |
Sets the orientation of the 3D sound source
| front | Forward vector |
| top | Upper vector |
|
inline |
Sets the orientation of the sound cone of the 3D sound source
| x | Value in X direction |
| y | Value in Y direction |
| z | Value in Z direction |
|
inline |
Sets the sound cone parameters of the 3D sound source
| insideAngle | Sound cone inside angle |
| outsideAngle | Sound cone outside angle |
| outsideVolume | Sound cone outside volume |
|
inline |
Sets the minimum/maximum distances of the 3D sound source
| minDistance | Minimum distance |
| maxDistance | Maximum distance |
|
inline |
Sets the interior Panning boundary distance of the 3D sound source
| sourceRadius | 3D sound source radius |
| interiorDistance | Interior distance |
|
inline |
Sets the Doppler coefficient of the 3D sound source
| dopplerFactor | Doppler coefficient |
|
inline |
Sets the volume of the 3D sound source
| volume | Volume |
|
inline |
Sets the maximum amount of change in angle AISAC control value
| maxDelta | Maximum amount of change in angle AISAC control value |
|
inline |
Sets the distance attenuation
| flag | Whether to enable the distance attenuation (True: enable, False: disable) |
|
inline |
Gets distance attenuation settings
|
inline |
Settings related to position randomization of 3D sound sources
| config | Config structure (nullable) used to randomize the positions of the 3D sound sources. |
|
inline |
Sets the list of coordinates to be used to randomize the position of a 3D sound source
| positionList | Position coordinates list |
|
inline |
Sets the 3D region
|
inline |
Sets the listener reference elevation AISAC control setting ID
| aisacControlId | Listener reference elevation AISAC control ID |
|
inline |
Sets the sound source reference azimuth AISAC control ID
| aisacControlId | Sound source reference azimuth AISAC control ID |
|
inline |
Sets the Distance AISAC Control ID
| aisacControlId | Sound source reference azimuth AISAC control ID |
|
inline |
Check if the 3D sound source can be discarded
|
inline |
Getting the position of the 3D sound source