Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow to create variants of custom objects #7403

Open
wants to merge 36 commits into
base: master
Choose a base branch
from
Open

Allow to create variants of custom objects #7403

wants to merge 36 commits into from

Conversation

D8H
Copy link
Collaborator

@D8H D8H commented Feb 14, 2025

Changes

  • Custom objects can now have several inner scene tabs called variants.
    • For instance, you can design 2 buttons variants: one green, one yellow and use them across the game. When you change the label font of the yellow button variant, it will apply to every yellow button of the game.
  • Variants tabs don’t allow to add or remove objects, behaviors, group or variables. Changes must be done in the custom object inner scene tab that can be opened from the extension editor.
  • Assets from the store will be installed as variants. These variants can't be edited to avoid any loss downloading them again, but they can be duplicated to be edited.
  • A special property must be used in the extension editor to map text content from properties to child-objects. This will no longer be necessary when the 3D editor is released.

Known issues

  • Variants can't be renamed.
  • Variable cross renaming will result to instance variable value loss (in general, it's not specific to variants).
  • Variants can't be easily moved from one project to another
    • Variants are stored in extensions but they are not exported with the extension.
    • The events-based objects or the extension can be copy-pasted to another project, but resources need to be imported to the other project manually.
    • We could allow to import back GDO to solve this issue.

Demo

Require

@D8H D8H force-pushed the ebo-variant branch 2 times, most recently from c9fc931 to 5841389 Compare February 21, 2025 09:16
@D8H D8H force-pushed the ebo-variant branch 2 times, most recently from 16ff4ad to eccdb98 Compare February 28, 2025 18:10
@D8H D8H force-pushed the ebo-variant branch 7 times, most recently from ab9a9bf to 897e8ca Compare March 10, 2025 17:11
@D8H D8H marked this pull request as ready for review March 13, 2025 16:25
@D8H D8H requested a review from 4ian as a code owner March 13, 2025 16:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant