We just made a new tool to help with our development in PlayCanvas.
To make the interface with other parts of the project as smooth as possible we want to mirror the interface of the default components, such as described in the API of the sound component.
In order to do so we would need to create methods similar to for instance:
Is there an available way to do so? Or would we need to digg into the PC source code?
As to why: Basically we fire a lot of events when different things happen in that tool. Just like the sound component fire ‘pause’ when it is paused. However, rather than firing a similar message back at the tool when we want to ‘pause’ the sound from a different script we wanted to use a method like for the sound component. Just to keep it a bit simpler and consistent with the other API