Hello guys,
i want to access the transform of a blueprint via c++. For eg, i want to acess the child component transform from a c++ class. is this possible(example in photo)?
Was the component created and added in C++ or in BP?
If it was in C++ then you already have the reference.
If it was in BP, then you have some options. For example, you can set a direct reference in BP; or use GetChildrenComponents / GetChildComponent to get the component; …
Then just GetComponentTransform(), GetComponentLocation(), …
The component was created from c++. But, i want to change it in the BP and not the object that is is in the viewport!
I think I still don’t understand what exactly the issue is. First you say: “i want to acess the child component transform from a c++ class” and now "i want to change it in the BP". So, I’m confused.
You have a TRS component. Which was created in C++. Now, what exactly do you want?
As shown in the picture, i want to access the TRS(Child Component) of the Blueprint from C++, but not change it only in the viewport, BUT ALSO in the Blueprint(in the generic form i would say…?).
You mean: