Zinnia.Unity icon indicating copy to clipboard operation
Zinnia.Unity copied to clipboard

AudioSourceHapticPulser can't be placed on another game object

Open fight4dream opened this issue 6 years ago • 2 comments

the audio source haptic pulser uses filter read, it has to be right beneath the audio source. but the way it is presented in the inpsector deceived us to think it can be placed elsewhere.

image

Solution

Add a hidden component to filter read at runtime, just like CollisionTracker will add CollisionTrackerDisabledObserver

fight4dream avatar Oct 29 '19 15:10 fight4dream

https://docs.unity3d.com/ScriptReference/RequireComponent.html

this adds it at edit time

thestonefox avatar Oct 29 '19 15:10 thestonefox

it is slightly different. i want the haptic pulser free to be on any object, not necessarily stick to audio source

fight4dream avatar Oct 29 '19 16:10 fight4dream