unreal-blueprint

access a variable from level blueprint in unreal engine 4

我只是一个虾纸丫 提交于 2020-08-10 19:32:05
问题 I Have a variable that updates every time i move my cube in the level blueprint , now i want to access this variable from multiple class blueprints , what do I do , I tried casting to gamestate but didn't succeed , I am really new to ue4 if you could explain in details please edit: sorry for not adding details , The var I want to access is an integer named cube_side that tells me what side the cube is on every time I move , all of this happens in the level bp , I want to access this variable

How can I create the equivalent of Unity LookAt in Unreal blueprint?

孤街醉人 提交于 2020-06-08 19:51:44
问题 In Unreal, I want to rotate an actor where the forward vector points at target's current position, to ensure that the up vector of my actor is the same at the up vector of my target In Unity3D, it's super simple. It's a single line of code (source): transform.LookAt(target, Vector3.up); In blueprint, there's a Node called "Find Look at Rotation". The problem is that there's no Up vector parameter, so when you are close to the target, you can have a unwanted roll rotation. So, how can I create

How to open an FBX file from my UE4 project's interface

谁说胖子不能爱 提交于 2019-12-13 04:56:54
问题 I've created an interface for my UE4 project that has an import button. What I want it to do is to access FBX files in the user's desktop and opens the one the user selects. I've written a c++ code that searches for FBX files in the desktop and returns their names, if found. I'm kind of confused/stuck at this moment, and don't know exactly how to continue. My question is: Shall I open the FBX file using c++ or blueprints? It would be much appreciated if you could elaborate more on the