-
Notifications
You must be signed in to change notification settings - Fork 57
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
Missing Instance names #195
Comments
I should think more about this. I previous versions of the editor I added the option of using the Label parameter as the The way of adding metadata to an object in Phaser Editor 2D is creating user components (or prefab user properties). |
This one is another issue. Those are the variable names and I agree it is getting too long. |
Please, can you tell me a bit more how do you pretend to use the |
I will add a checkbox for enabling using the Variable Name as the game object's |
Done. Please, can you create a new issue about:
|
the name property is good to use in loops where you need to know :
1. name of a button which is pressed (used on switch to perform desired action)
2. name of drag and drop item which is dropped on area (compare list of names which is allowed to drop here)
3. generally iterate with scene objects
…________________________________
From: Phaser Editor 2D ***@***.***>
Sent: Wednesday, March 23, 2022 1:14 PM
To: PhaserEditor2D/PhaserEditor2D-v3 ***@***.***>
Cc: MerlinEl (Orien) ***@***.***>; Author ***@***.***>
Subject: Re: [PhaserEditor2D/PhaserEditor2D-v3] Missing Instance names (Issue #195)
but , the real name should be accessible ;-)
Please, can you tell me a bit more how do you pretend to use the name property?
—
Reply to this email directly, view it on GitHub<#195 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ADTYSLM7VIFZ266AOBI7DOTVBMKJ5ANCNFSM5Q4L275Q>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Thanks. Yes, I think many users use these kind of techniques so it is fine for me to include the And sure, you can always add metadata to an object using the User Components.
Well, I think setting this ON by default will generate a lot of code that is not required in most of the cases. |
Version
Description
-add some prefab instances in to scene
-print one random instance properties in to console > console.dir(instance_01);
you will see that instance name is an empty string.
Possible solution
-for now I'm adding a new property "instanceName" which is readable
(but is double work, why not use names if they are already there ;-)
The text was updated successfully, but these errors were encountered: