Not sure if this is a bug, or if it’s me doing something wrong … I hope someone can clarify this for me …
I have an Actor blueprint BP_IA (an ‘interactable’ object) that I use as the parent of a bunch of child-objects (cubes, spheres, …). I have set a bunch of variables in BP_IA to be ‘editable’, so I can set distinct values for all child-objects in the editor.
The problem is that sometimes, when I open my project … all the values I set earlier are gone (set back to default). This is incredibly annoying since I have a lot of BP_IA child-objects in my game …
The only thing I can think of that would be causing this would be that you may be setting the properties on the instance itself instead of inside of the child blueprint, and you’re spawning these child actors on the construction script or something. Is it possible that this is the case? Try setting up some default values in the child’s blueprint to see if it is resetting to those defaults and not the parent’s
Yes, the properties are set on the instances (spheres, cubes, etc), but these child actors are dragged into the scene from the content browser. I do not create them from code (construction script, spawn).
Let’s say that 90% of the time, the properties I set persist onto the next time I open up my project. Occasionally however, the values are reset to what I had in the parent blueprint.
I have a feeling that this might be happening when I accidentally start (play) the game without first selecting the level I had been working on (but I’m not a 100% sure about this).
Unfortunately I’m not able to get this to reproduce. Could you try what you’re seeing in a fresh project to see if you’re able to get it to occur? It could be something specific to your project that we’re not accounting for.
Sure, I’ll try it out tonight after work, but it won’t be easy to reproduce because it only happens occasionally.
I don’t think it’s something specific to my project though, because I had this happening to me in a previous project as well (2D, a year or so ago). It might be something I’m doing wrong …
The problem is with the info in the detail panel. It is supposed to hold info on the objects in the scene, but from time to time that info is just gone when I start up the project.
Is there a certain asset I’m supposed to be looking at? It looks like the current children that I see, bp_IA_cube and bp_IA_sphere were still set to defaults, so anything that the parent’s variables were changed to would be reflected to them upon a reset. I gave them a different value, saved them, and after restarting the project multiple times, nothing seems to of changed.
No, it’s about the cubes and spheres…
I dragged them onto the scene from the 2 blueprints, and then set their values directly in the default panel. Am I not supposed to do that ?
But then, what’s the purpose of the default panel ?
That panel is called the Details Panel (Unless you mean the Class Defaults panel in the Blueprint?), and no there is no problem with using that to set your properties. It was just never made clear what properties you were setting, where you were setting them, or if you were setting properties on instances of the blueprints or on the blueprints themselves. I’ve looked at the map Level0, looked at the “My Icon Txt Base”, “My Coll”, “My Name”, and “My Coll Max” properties set on these instances. After restarting the project about 10 times I tried editing them myself and then tried 10 more times. I never saw any changes being reverted or changed automatically.
If you are using the Class Defaults panel inside of the blueprint to change these settings, it’s expected that the instances won’t be automatically updated. If you want the instances to reflect the default settings, you’ll need to reset their settings to default by clicking the yellow arrow beside each of the affected properties. This should reset it to the default value which is the value you set in the Class Defaults panel.
We haven’t heard from you in a while, . Are you still experiencing this issue? If so, was my last comment of any help? In the meantime, I’ll be marking this issue as resolved for tracking purposes.