Hallo
Is there any way to get a connection between two components that are in different blueprints ?
I have a blueprint component and i need to access the location of that blueprint and place a cube geometry in another blueprint.
Hallo
Is there any way to get a connection between two components that are in different blueprints ?
I have a blueprint component and i need to access the location of that blueprint and place a cube geometry in another blueprint.
I used that but getting an error as 'Blueprint Runtime Error: ‘Accessed none trying to read property BP1Ref’…Do i need to make any adjsutments to the BP1Ref object ?
You have to assing the BP1Ref variable. It’s no good just having the correct type, it has to actually point to the blueprint in question.
If you’re placing both of them in the level, you can do that in the details panel
Thanks…
@ClockworkOcean I have a doubt with an extension to this. Now I have the blueprint B and have component in it that is using the location of a component of blueprint A. Now i want to create a same component but with the location of another component of A. which will be good option ?
or any other way available ?
It’s still B copying the location of stuff in A, isn’t it?
Why 3 BPs?
Just do the same thing as before, but copy the location of the other component.
Why do you need to do this, by the way? Maybe there’s a better way…
@ClockworkOcean You mean copy all the blocks and the connections to the same blueprint and connect the location to that ? Actually I need to show both the component of B at the same time ?
The remaining blocks are the functions and a procedural mesh…so i have to copy all blocks of functiosn and procedural mesh so as to form a three rows of blocks right ?
You’re losing me here…
If the blueprints are so similar, why not use inheritance?
What are you trying to do? ( my example was about static mesh components )
I have a triangle component on BP B which uses the location of a component of BP A. Now i want to show/create the same triangle of BP B but with another location of a component of BP A. I need to show both the triangles at the same time…
So you make a second component in A, and copy the location of the other component you want from B.
But you don’t want to have to copy the procedural code, right?
BP A1 >> location >> BP B1
BP A2 >> location >> BP B2
Here both B1 and B2 are almost same…Now i have BP A1 >> location >> BP B1
A1 - BP A component
B1 - BP B component (triangle drawn using procedural mesh)
so basically i need to draw two triangles with different location of component in BP A
You only need one kind of BP.
It can make static mesh components, or proc mesh components. And can optionally copy the location from another copy of itself.
Like this
Just put two of them ( the same thing ) in the level…
As in the video https://youtu.be/GJbiWLsxLcc
I need to create another traingle but with another location of compoenent A
Like I said above. One blueprint
It is not working for me. Can you please check the attached video. I think i caused some confusion…
Most people would do all this in one blueprint. I think that might be why you’re having a lot of issues.
Why not have a BP, which is a camera with the zone drawn?
Or put the camera and the zone in the car BP?
But, from what I’ve said above, you can put the ‘zone’ proc mesh at the location of the camera. Just by copying the world coordinates.
Actually the first triangle is working perfectly for me…the issue is when i copy the block and try to paste it, it gives error as same block can’t able to paste…