-
Notifications
You must be signed in to change notification settings - Fork 56
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
Set custom property to Phaser game object #304
Comments
Hi, you can create a user component with additional user properties and add it to any game object in the scene. https://help-v3.phasereditor2d.com/scene-editor/user-components.html# |
@PhaserEditor2D creating custom component is not what i want, because I want to specify numeric value (0-255) for z axis, which differs from sprite to sprite. |
So you don't need a custom/user property, what you need is to add the Z property to the editor. It means, a new feature in the editor. |
@PhaserEditor2D that's right. But I presume that most users won't need to see Z property in the panel. Could we have a button to "add" a property and it's value? |
Mmm... I don't know I have to think more about it. We have a button to add a user component :) Btw, why do you need the Z property? What kind of stuff you are making? Maybe it is part of a bigger feature that I plan to implement. |
Oh yes, I have to do more about isometrics. Like a sorting layer. It will help in the case of isometrics and also other kind of worlds. |
This image gameobject also has
z
coordinate, that I'd like to set in the editor, but it's not exposed in the inspector panel. Allow setting any custom property like for prefabs also to game objects like image, spriteThe text was updated successfully, but these errors were encountered: