Creates a new Expression instance. Initializes an empty array of render passes that can be populated later.
Collection of tags associated with this object
Static
Readonly
InvalidInvalid object UID constant
Static
currentCurrent maximum object count for UID generation
Gets the unique object identifier
The object's UID
Gets a read-only reference to the array of render passes in this expression. The render passes are returned in the order they will be executed.
Array of RenderPass instances in execution order
Gets the unique name of this object
The unique name string
Internal
Copies tag data from another RnObject instance to this object
The source RnObject to copy tags from
Appends multiple render passes to the end of the current render pass sequence. The order of render passes determines the rendering pipeline execution order.
Array of RenderPass instances to be added
Creates a deep copy of this Expression instance. All render passes are cloned individually to ensure complete independence.
A new Expression instance with cloned render passes
Checks if this object has all the specified tags with exactly matching values
Object containing tag names as keys and expected values
True if all specified tags exist with matching values, false otherwise
Checks if the object's combined tag string contains all the provided search strings. This allows for flexible searching within tag names and values.
Array of strings that must all be present in the combined tag string
True if all strings are found in the combined tag string, false otherwise
Sets the viewport dimensions for all render passes in this expression. This is a convenience method to apply the same viewport to all passes at once.
Vector4 containing viewport coordinates (x, y, width, height)
Attempts to set a tag on this object. If the tag already exists, it will be replaced.
The tag object containing the name and value to set
True if the tag was successfully set, false if the tag name contains invalid characters
Attempts to set a unique name for this object
The desired unique name
If true, appends UID to make name unique when conflicts occur; if false, fails on conflict
True if the name was successfully set, false if there was a conflict and toAddNameIfConflict was false
Static
_resetStatic
getStatic
getStatic
searchSearches for the first object that has a specific tag with the given value
The tag name to search for
The tag value to match
WeakRef to the first matching object, or undefined if not found
Expression class manages the rendering pipeline by defining the order and sequence of render passes. It acts as a container that orchestrates multiple render passes to create complex rendering effects.
Example