Behavior instance.
More...
◆ createSpeaker()
Speaker Dragengine.Scenery.ECBehaviorPlaySound.Instance.createSpeaker |
( |
| ) |
|
|
protected |
◆ dispose()
void Dragengine.Scenery.ECBehaviorPlaySound.Instance.dispose |
( |
| ) |
|
◆ getBone()
String Dragengine.Scenery.ECBehaviorPlaySound.Instance.getBone |
( |
| ) |
|
◆ getBoneIndex()
int Dragengine.Scenery.ECBehaviorPlaySound.Instance.getBoneIndex |
( |
| ) |
|
◆ getCollider()
ECBehaviorCollider.Instance Dragengine.Scenery.ECBehaviorPlaySound.Instance.getCollider |
( |
| ) |
|
Collider or null if not used.
◆ getComponent()
ECBehaviorComponent.Instance Dragengine.Scenery.ECBehaviorPlaySound.Instance.getComponent |
( |
| ) |
|
Component or null if not used.
◆ getDistanceOffset()
float Dragengine.Scenery.ECBehaviorPlaySound.Instance.getDistanceOffset |
( |
| ) |
|
Distance offset for attenuation calculation.
- Version
- 1.12
For use by distance sounds. Offsets the true distance to the sound source for attenuation calculation to make the sound appear coming from far away. Requires increasing the volume to compensate for the distance increased attenuation.
◆ getECBehavior()
◆ getOrientation()
Quaternion Dragengine.Scenery.ECBehaviorPlaySound.Instance.getOrientation |
( |
| ) |
|
◆ getPlaySpeed()
float Dragengine.Scenery.ECBehaviorPlaySound.Instance.getPlaySpeed |
( |
| ) |
|
◆ getPosition()
Vector Dragengine.Scenery.ECBehaviorPlaySound.Instance.getPosition |
( |
| ) |
|
◆ getRange()
float Dragengine.Scenery.ECBehaviorPlaySound.Instance.getRange |
( |
| ) |
|
◆ getRollOff()
float Dragengine.Scenery.ECBehaviorPlaySound.Instance.getRollOff |
( |
| ) |
|
◆ getSound()
Sound Dragengine.Scenery.ECBehaviorPlaySound.Instance.getSound |
( |
| ) |
|
◆ getSpeakerType()
SpeakerType Dragengine.Scenery.ECBehaviorPlaySound.Instance.getSpeakerType |
( |
| ) |
|
◆ getTrigger()
ECBehaviorTriggered.Instance Dragengine.Scenery.ECBehaviorPlaySound.Instance.getTrigger |
( |
| ) |
|
Trigger play or null if not used.
◆ getVolume()
float Dragengine.Scenery.ECBehaviorPlaySound.Instance.getVolume |
( |
| ) |
|
◆ init()
void Dragengine.Scenery.ECBehaviorPlaySound.Instance.init |
( |
StubElement |
stub | ) |
|
◆ new()
◆ play()
Speaker Dragengine.Scenery.ECBehaviorPlaySound.Instance.play |
( |
| ) |
|
Play sound as one shot speaker.
- 1.16
Returns speaker added to game world or null if unable to play sound.
◆ positionSpeaker()
void Dragengine.Scenery.ECBehaviorPlaySound.Instance.positionSpeaker |
( |
Speaker |
speaker | ) |
|
|
protected |
Position speaker.
If bone and collider is present speaker is attached.
◆ setBone()
void Dragengine.Scenery.ECBehaviorPlaySound.Instance.setBone |
( |
String |
bone | ) |
|
|
protected |
Set relative bone or null.
◆ setDistanceOffset()
void Dragengine.Scenery.ECBehaviorPlaySound.Instance.setDistanceOffset |
( |
float |
distanceOffset | ) |
|
Set distance offset for attenuation calculation.
- Version
- 1.12
For use by distance sounds. Offsets the true distance to the sound source for attenuation calculation to make the sound appear coming from far away. Requires increasing the volume to compensate for the distance increased attenuation.
◆ setOrientation()
void Dragengine.Scenery.ECBehaviorPlaySound.Instance.setOrientation |
( |
Quaternion |
orientation | ) |
|
|
protected |
Set relative orientation.
◆ setPlaySpeed()
void Dragengine.Scenery.ECBehaviorPlaySound.Instance.setPlaySpeed |
( |
float |
playSpeed | ) |
|
|
protected |
◆ setPosition()
void Dragengine.Scenery.ECBehaviorPlaySound.Instance.setPosition |
( |
Vector |
position | ) |
|
|
protected |
◆ setRange()
void Dragengine.Scenery.ECBehaviorPlaySound.Instance.setRange |
( |
float |
range | ) |
|
|
protected |
◆ setRollOff()
void Dragengine.Scenery.ECBehaviorPlaySound.Instance.setRollOff |
( |
float |
rollOff | ) |
|
|
protected |
◆ setSound()
void Dragengine.Scenery.ECBehaviorPlaySound.Instance.setSound |
( |
Sound |
sound | ) |
|
|
protected |
◆ setSpeakerType()
void Dragengine.Scenery.ECBehaviorPlaySound.Instance.setSpeakerType |
( |
SpeakerType |
type | ) |
|
|
protected |
◆ setVolume()
void Dragengine.Scenery.ECBehaviorPlaySound.Instance.setVolume |
( |
float |
volume | ) |
|
|
protected |
◆ updateBoneIndex()
void Dragengine.Scenery.ECBehaviorPlaySound.Instance.updateBoneIndex |
( |
| ) |
|
The documentation for this class was generated from the following file: