FMOD Studio User Manual 2.02
A studio.project.Entity provides information about the type of a ManagedObject.
The entity for a given ManagedObject can be retrieved using ManagedObject.entity. This provides the string representation for an entity, which can then be looked up in the project.model.
Properties:
ManagedObject instance of the entity can exist at any given time.ManagedObject property available for this entity.Methods:
ManagedObject instances of a given entity type.ManagedObject instance of a particular entity type.Objects:
A constant boolean value that is set to true if an object is the base class of another entity type.
Abstract entities cannot be instantiated with project.create.
A constant boolean value that is set to true if an entity exists globally, rather than on a per project basis.
A constant boolean value that is set to true if only a single ManagedObject instance of the entity can exist at any given time.
Returns an array of property description objects containing named properties that represent each ManagedObject property available for this entity.
See Also: Property Description Object
An array of strings representing the entity type inherited by this entity.
Returns a string describing the entity, including its properties and relationships.
entity.document()
Returns an array of ManagedObject instances of a given entity type.
entity.findInstances(
[options]
)
You can optionally pass an options object { searchContext, includeDerivedTypes }. Passing a managed object for the searchContext field confines the search to children of that object. Passing true for the includeDerivedTypes field will allow derived types of the given entity to be returned.
For example:
// find all SingleSounds within the project
studio.project.model.SingleSound.findInstances();
// find all SingleSounds within the currently selected event
studio.project.model.SingleSound.findInstances({ searchContext: studio.window.browserCurrent() });
// find all GroupTracks, ReturnTracks and MasterTracks within the currently selected event
studio.project.model.AudioTrack.findInstances({ searchContext: studio.window.browserCurrent(), includeDerivedTypes: true });
Returns the singleton ManagedObject instance of a particular entity type.
entity.singletonInstance()
An error will be thrown if the entity is not a singleton type.
An unnamed data object describing the relationship between two entities.
{
cardinality: [string],
destinationType: [string],
isRequired: [bool]
}
An unnamed data object containing the data type and default value of a property.
{
dataType: [string],
defaultValue: [variant]
}
This is the object type returned from entity.Properties.
Returns an array of relationship description objects, containing named relationships that represents each ManagedObject relationship available for this entity.
See Also: Relationship Description Object