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
Renaming objects in external layout causes them to be invisible + more #142
Comments
Good catch ! The problem is that objects (in my opinion) should not be Le mar. 23 juin 2015 à 23:45, unsoundness notifications@github.com a
|
If I'm not mistaken, when editing an external layout, the objects editor is passed the scene as parameter and so think that you are editing this scene. I think the solution would be to take a look at the method doing the renaming and ensure that all part of the project using the object (i.e: any external events/layout) are updated. |
It would be very nice if it could be updated to allow the renaming rather than just disabled on the external layout, because it seems to get buggy even if I edit the name on other scenes, and I really don't want to keep the default NewObject# names for the following reason: I'm basically trying to use these objects in multiple scenes as an overlay. Being forced to keep the default name of "NewObject#" (at the moment) is not very clean / clear in code, and it's a problem when I want to delete these objects (toggle off the overlay) as well. So I wanted to name everything with a prefix: e.g. OverlayTitleText, OverlaySomethingElse and then access/delete them this way. In addition (while slightly on the topic): It would be awesome if the external layouts actually were accessible as more of an "external" thing (e.g. MyExternalLayout.ObjectName) or better, if there were a new feature called Overlays. Because I realize the way the external layout works now is also useful for true game objects/mechanics. So .. They would be drawn kind of like a layer, except you can use it on multiple scenes, and have better control over them. Even if it's always on top of the main scene (to keep it simpler to implement), it would be useful for GUI/HUD. Example of how I imagine it would work in event (actions): Or is there another clean way to do this and I'm completely oblivious to it existing? Either way, thanks for looking into the original issue! |
Closing this as object names should properly be propagated across scenes and external layouts now. |
Renaming objects in an external layout causes them to become invisible, or act as if they don't exist.
It seems that the object name is not being updated/saved.
Note: if you rename it back to the original name (e.g. NewObject) it will show again
To reproduce:
You will see it on the screen fine,
until 6) Rename the object (in object editor) to anything else
It disappears, and doesn't render in the game either.
In addition, if you stop at Step 6 (leaving the name as something new)
Then
-Add another object
-It will have the same name as the first object originally did (e.g. NewObject)
And even though the original object is named something else (such as "Blah"), when editing the properties of EITHER object, it changes the values for both of them as if they are the same object.
The text was updated successfully, but these errors were encountered: