Designer Plugins
Plugins for Disguise Designer software.
Plugins for Disguise Designer software.
A 2.5D asset, which contains multiple 2.5D plates.
The 2.5D asset can be loaded from or exported to a .2p5d file for reuse across different projects.
See https://developer.disguise.one/formats/2p5d/ for the .2p5d format specification for 2.5D assets.
Category: Stage
Base class: Object
Show the asset in the stage, even when the editor is not open
Maximum depth represented in the depth map (far plane), in metres.
Maximum depth represented in the depth map (near plane) when the asset was extracted, in metres.
Minimum depth represented in the depth map (near plane) when the asset was extracted, in metres.
The minimum depth in metres used when interpreting depth maps from imported assets
Set to -1 to reload default value from file
UserName: Depth map minimum override
The file path for the asset, when it has been loaded from a .2p5d file.
Horizontal field of view covered by the asset, in degrees
Vertical field of view covered by the asset, in degrees
Whether the asset has been extracted from its .2p5d file.
Maximum depth of the plates in the asset, in metres
Array of plates which make up the 2.5D scene
UserName: Plates
Decrements the editor reference count.
Called when a relevant editor (e.g. 2.5D module or asset) is closed. If the reference count reaches 0, the asset becomes invisible in the stage.
Whether the depth map minimum specified in depthMapMinOverride is valid and different to the original depth specified in depthMapMinOriginal.
Exports the asset to a .2p5d file.
The file is saved as [asset name].2p5d within the project’s objects/2p5DFile folder.
Extracts the asset from its corresponding 2.5D file.
Parameters:
Whether the asset has a .2p5d file within the project associated with it.
Increments the editor reference count.
Called when a relevant editor (e.g. 2.5D module or asset) is open. The asset becomes visible in the stage when the reference count is > 0.
Called when the order of plates in the list has changed.
This function updates the depth of each plate based on its new position within the list to ensure that the plates are sorted in ascending order by depth.
Parameters:
Renders a preview of the asset from the eye point
Parameters:
Returns A texture containing the rendered preview.
The aspect ratio (X/Y) of the scene, based on the vertical and horizontal extents of the 2.5D plates within the asset.