You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Any entity in Pandora is theoretically data that represents a concept or entity in the game itself. Usually, someone would write something like this in their "world object":
to then display the entity inside the world, e.g. via some 2D sprite or 3D model. This works fine but when tweaking entities or creating new ones, it would be great to see if everything is correctly configured as soon as possible. One does not want to navigate back and forth between the 2D (or 3D) and Pandora editor view to check how changing attributes transforms the appearance of a world object.
Entity Preview
On categories, introduce a new boolean option called "Enable entity preview" - toggling that on defaults to a scene that simply shows a 2D sprite of the entity icon (as that is always present). However, users can define a custom scene path to a scene that looks like this:
@toolextendsPandoraEntityPreview2Dfuncready():
# entity will be available here injected by Pandoraprint(self.entity.get_entity_name())
This means users can create their own scenes to preview their entities by inheriting one of the following:
PandoraEntityPreview2D (which extends Node2D)
PandoraEntityPreview3D (which extends Node3D)
The preview would be displayed on entities above the property list (and above the property bar). Optionally, introduce a button to popout the preview into its own window (closing the window reverts back to the in-editor preview). Also add an option to hide/collapse the preview for all entities.
The text was updated successfully, but these errors were encountered:
Any entity in Pandora is theoretically data that represents a concept or entity in the game itself. Usually, someone would write something like this in their "world object":
to then display the entity inside the world, e.g. via some 2D sprite or 3D model. This works fine but when tweaking entities or creating new ones, it would be great to see if everything is correctly configured as soon as possible. One does not want to navigate back and forth between the 2D (or 3D) and Pandora editor view to check how changing attributes transforms the appearance of a world object.
Entity Preview
On categories, introduce a new boolean option called "Enable entity preview" - toggling that on defaults to a scene that simply shows a 2D sprite of the entity icon (as that is always present). However, users can define a custom scene path to a scene that looks like this:
This means users can create their own scenes to preview their entities by inheriting one of the following:
PandoraEntityPreview2D
(which extendsNode2D
)PandoraEntityPreview3D
(which extendsNode3D
)The preview would be displayed on entities above the property list (and above the property bar). Optionally, introduce a button to popout the preview into its own window (closing the window reverts back to the in-editor preview). Also add an option to hide/collapse the preview for all entities.
The text was updated successfully, but these errors were encountered: