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

Code Generator does not gen the path of nested prefabs #282

Closed
gregwoodsfrontier opened this issue May 15, 2023 · 2 comments
Closed

Code Generator does not gen the path of nested prefabs #282

gregwoodsfrontier opened this issue May 15, 2023 · 2 comments
Labels
Enhancement New feature or request

Comments

@gregwoodsfrontier
Copy link

Version 3.60

  • Phaser Editor 2D Version:
  • Operating System:
  • Web Browser and version:

Description

One thing about nested prefabs.
So I have a ScriptNode that needs to take a Sprite as argument in editor.
I have a PlayerContainer that contains that sprite and also hitboxs, hurtboxes.
I tried to make the player sprite nested prefab and pass that prefab as args to that node.
But the editor gens the code with error. Instead of "playerContainer.sprite" the editor gens "sprite"

I think that is a bug in editor that needs fixing.

Discord Message Link:
https://discord.com/channels/692441121317715999/729142563273179186/1107659781373702236

Possible solution

Make the code generator gen the path of the nested prefab.

@PhaserEditor2D
Copy link
Owner

It is not the code generator else the dialog for selecting the nested prefab one outputs sprite instead of playerContainer.sprite. I'm working on it.

@PhaserEditor2D
Copy link
Owner

Done.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants