BArtisan.Thrusters.Helpers.BThrusterHelperSound Class Reference
+ Inheritance diagram for BArtisan.Thrusters.Helpers.BThrusterHelperSound:

Detailed Description

A helper made as an example to show how to connect a thrusters's throttle to an Audio Source. It can control a source's volume and/or it's pitch. For optimization purposes Deactive this component if you do not need it.

Member Data Documentation

◆ connectedThruster

BThrusterBase BArtisan.Thrusters.Helpers.BThrusterHelperSound.connectedThruster

Reference to the the thruster. Leave blank to auto detect in the GO or children.

◆ connectedSources

AudioSource [] BArtisan.Thrusters.Helpers.BThrusterHelperSound.connectedSources

Reference to the audio sources it will control. Leave blank to auto detect in the GO and children.

◆ controlVolume

bool BArtisan.Thrusters.Helpers.BThrusterHelperSound.controlVolume = true

Will control the volume value based on the thruster's throttle.

◆ volumeByThrottle

AnimationCurve BArtisan.Thrusters.Helpers.BThrusterHelperSound.volumeByThrottle
Initial value:
= new AnimationCurve(
new Keyframe[] { new Keyframe(0f, 0.1f), new Keyframe(1f, 1f) })

◆ controlPitch

bool BArtisan.Thrusters.Helpers.BThrusterHelperSound.controlPitch = false

Will control the pitch value based on the thruster's throttle.

◆ pitchByThrottle

AnimationCurve BArtisan.Thrusters.Helpers.BThrusterHelperSound.pitchByThrottle
Initial value:
= new AnimationCurve(
new Keyframe[] { new Keyframe(0f, 1f), new Keyframe(1f, 1f) })

◆ debugLog

bool BArtisan.Thrusters.BBaseMonobehaviour.debugLog = false
inherited

Enable to debug this component. Warning: it may result in CPU intensive debug messages (each frame).