The scope of applications for UnigineScript is limited to implementing materials-related logic (material expressions, scriptable materials, brush materials). Do not use UnigineScript as a language for application logic, please consider C#/C++ instead, as these APIs are the preferred ones. Availability of new Engine features in UnigineScript (beyond its scope of applications) is not guaranteed, as the current level of support assumes only fixing critical issues.
This set of functions is available when the FMOD plugin is loaded.
This class is intended to interact with the data driven projects created via FMOD Studio at run time.
FMODStudio Class
Members
Bank loadBank ( string path ) #
Loads a bank at a given path.Arguments
- string path - Path to the bank file.
Return value
Bank object.VCA getVCA ( string path ) #
Auxiliary function, not to be used.Arguments
- string path
Bus getBus ( string path ) #
Auxiliary function, not to be used.Arguments
- string path
EventInstance getEvent ( string path ) #
Returns the EventInstance object at a given path.Arguments
- string path - Path of the EventInstance.
Return value
EventInstance object.EventDescription getEventDescription ( string path ) #
Auxiliary function, not to be used.Arguments
- string path
void setListener3DAttributes ( int listener, const Vec3 & position, const Vec3 & up, const Vec3 & forward, const Vec3 & velocity ) #
Sets the 3D attributes of the listener. Vectors must be provided in the correct handedness.Arguments
- int listener - Listener index.
- const Vec3 & position - Position in world space used for panning and attenuation.
- const Vec3 & up - Upwards orientation, must be of unit length (1.0) and perpendicular to forward.
- const Vec3 & forward - Forwards orientation, must be of unit length (1.0) and perpendicular to up.
- const Vec3 & velocity - Velocity in world space used for doppler.
void getListener3DAttributes ( int listener, Vec3 & position, Vec3 & up, Vec3 & forward, Vec3 & velocity ) #
Returns the 3D attributes of the listener.Arguments
- int listener - Listener index.
- Vec3 & position - Position in world space.
- Vec3 & up - Upwards orientation.
- Vec3 & forward - Forwards orientation.
- Vec3 & velocity - Velocity in world space.
void setListenerVelocity ( const Vec3 & velocity ) #
Sets the velocity of the listener.Arguments
- const Vec3 & velocity - Velocity in world space.
void setListenerTransform ( Mat4 transform ) #
Sets the transformation matrix of the listener. Currently the listener only works with the standard camera.Arguments
- Mat4 transform - Transformation matrix.
void setParentForListener ( Node parent ) #
Sets a parent node for the listener.Arguments
- Node parent - Node to be set as a parent.
void useStudioLiveUpdateFlag ( ) #
Enables live update.void useStudioSyncUpdateFlag ( ) #
Disables asynchronous processing and perform all processing on the calling thread instead.void useStudioLoadFromUpdateFlag ( ) #
No additional threads are created for bank and resource loading.void useCoreStreamFromUpdateFlag ( ) #
No stream thread is created internally. Mainly used with non-realtime outputs.void update ( ) #
Updates the FMOD system.void initStudio ( ) #
Studio initialization.Bank getBank ( int id ) #
Auxiliary function, not to be used.Arguments
- int id
EventDescription getEventDescription ( int id ) #
Auxiliary function, not to be used.Arguments
- int id
Bus getBus ( int id ) #
Auxiliary function, not to be used.Arguments
- int id
VCA getVCA ( int id ) #
Auxiliary function, not to be used.Arguments
- int id
int getBankCount ( ) #
Returns the number of loaded banks.Return value
Number of banks.int getEventDescriptionCount ( ) #
Returns the number of event descriptions.Return value
Event description count.int getBusCount ( ) #
Returns the number of buses.Return value
Number of buses.int getVCACount ( ) #
Returns the number of VCAs.Return value
VCA count.BufferUsage getBufferUsage ( ) #
Returns buffer usage information.Return value
Buffer usage information.void resetBufferUsage ( ) #
Resets memory buffer usage statistics.CPUUsageTotal getCPUUsageTotal ( ) #
Returns the total amount of CPU used.Return value
Total CPU usage.void getMemoryUsage ( int & exclusive, int & inclusive, int & sample_data ) #
Returns memory usage statistics.Arguments
- int & exclusive - Size of memory belonging to the bus or event instance.
- int & inclusive - Size of memory belonging exclusively to the bus or event plus the inclusive memory sizes of all buses and event instances which route into it.
- int & sample_data - Size of shared sample memory referenced by the bus or event instance, inclusive of all sample memory referenced by all buses and event instances which route into it.
void release ( ) #
Shuts down and frees the Studio System object.void releaseBuses ( ) #
Releases bus objects.void releaseVCAs ( ) #
Releases VCA objects.void releaseEventDescriptions ( ) #
Releases event description objects.void releaseBanks ( ) #
Releases bank objects.Last update:
2021-12-13
Help improve this article
Was this article helpful?
(or select a word/phrase and press Ctrl+Enter)