To set positions, I have to first select root component, then find element and set positoin.
Obviously, it is impossible to set positions with only numbers.I want to set positions directly in editor,
like a normal class member with UPROPERTY declared correctly.
But this is what I get:(Root is the component I created using Rama’s USTRUCT method. )
native components are editable when declared as a property in c++.
Again, it is impossible to set positions with only numbers.
So am i running out of options?
And of course, I do have workaround, just use a static array with MAX_NUMBER defined.
But I really want to use dynamic arrays.
Please help me here, thanks!!
I have the same problem. My actor has a TArray with a dynamic count of components.
When I select one of those components, I expected to be able to edit its parameters.
Instead, I get the “Native components…” message.
Has someone a better idea than workaround with a static array?
I’d love to help, but I’m not quite clear on what you’re looking to do yet or how that is different from what you have.
It sounds like you want to have a TArray of dynamically created components that is visible in the editor and allows you to edit the properties (e.g. transforms) of the elements. Is this right? Further, it sounds like you want these components (which will be added to the component hierarchy) to be editable directly from the hierarchy view. Is this correct too?
Judging from your screenshots, it looks like the properties of the array elements are editable but the components are not editable from the hierarchy view. If I’m understanding this correctly, the second part is the problem. Is this right?
If my understanding is correct, can you show me the code you’re using for the TArray and for setting up the components? If I’ve misunderstood something, can you help me understand it better?