Questions tagged [unreal-blueprint]

Blueprints are Unreal Engine's visual programming structure. Use this tag for all questions related to blueprint programming in Unreal Engine.

Unreal Engine's Blueprint system replaced Unreal Engine 3's Kismet in May 2012. Blueprints help add functionality to meshes, props and players in order to turn 3d art into a working game.

499 questions
11
votes
1 answer

Why GetAllActorsOfClass returns empty?

I have a PlayerControl.cpp class which derives from Pawn class In that class , I have a method to get all Actors in Map TSubclassOf ClassToFind; TArray FoundEnemies; UGameplayStatics::GetAllActorsOfClass(GetWorld(), ClassToFind,…
Kas
  • 3,747
  • 5
  • 29
  • 56
9
votes
1 answer

Why the UPROPERTY specifiers Visible*/Edit* are used together with BlueprintRead*

Unreal Engine 4 provides three specifiers to control the visibility and editability of an C++ class member exposed to Blueprint via UPROPERTY(). The documentation in the UE4 source code (see also UE4 wiki, UE4 documentation) says the following…
Roi Danton
  • 7,933
  • 6
  • 68
  • 80
6
votes
4 answers

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

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…
probitaille
  • 1,899
  • 1
  • 19
  • 37
6
votes
3 answers

Spawn actor from class in Unreal Engine using Python

Using Blueprint, I can SpawnActorFromClass with a StaticMeshActor, but with a Python script via the builtin Python Script plugin, unreal.EditorLevelLibrary().spawn_actor_from_class(ue.Class(name='StaticMeshActor'), location, rot) I got: LogPython:…
kakyo
  • 10,460
  • 14
  • 76
  • 140
4
votes
1 answer

UE4: How to cast actor to blueprint interface type

I'd like to store a variable of type Actor in a variable which is of a BP interface type. Is there something like a Cast To BP Interface BP node? I know about the Does Implement Interface (which does not return a reference to the interface instance)…
Noel Widmer
  • 4,444
  • 9
  • 45
  • 69
4
votes
3 answers

UE4 Enabling Mouse During Play?

I'm extremely new to UE, and doing a few easy tutorials to get started, so I don't exactly know the correct terminology to use to help me find what I am looking for... Anyway, whenever I hit play and the game starts, my mouse disappears and I am…
xponent
  • 151
  • 2
  • 2
  • 10
4
votes
1 answer

How to create a custom c++ class to use with blueprint

I am trying to create a custom class that i can then use in my blueprints. I need this class to hold player information like name and a path to their picture. What I have made so far doesn't compile or build without errors and I don't know how to…
3
votes
0 answers

Streaming Levels Limits?

In UE it seems the only way to seamlessly travel between levels is with blueprint level streaming. My goal is to have a "loading level" which is a very basic, always loaded level that becomes visible when loading into a real level. Upon load…
hewiefreeman
  • 1,137
  • 1
  • 14
  • 31
3
votes
1 answer

Unreal - How to avoid hardcoded path when creating an object in cpp

The following code has been bothering me for a bit: ARollingBall::ARollingBall() { UStaticMeshComponent* sphere; sphere = CreateDefaultSubobject(TEXT("ball")); static ConstructorHelpers::FObjectFinder
Jason Basanese
  • 690
  • 6
  • 20
3
votes
1 answer

UE4, setting relative angular velocity of object

Context I have been attempting to set the angular velocity of a frisbee in UE4. This is easy. However, UE4 adds an angular velocity through the center of mass of an object relative to the 'world-axis' and not relative to the axis of the frisbee.…
ZanyCactus
  • 79
  • 2
  • 10
3
votes
1 answer

What is the correct way to access a blueprint class component in C++

I recently switched from unity and I wanted to know if there was a “getComponent” equivalent in UE4? I have an enemy script and I created a blueprint from that script and have added a widget with a progress bar to show the enemies health during…
AmberLynn
  • 31
  • 1
  • 4
3
votes
2 answers

Blueprints reset variable values every compile

Using UE 4.23.1 Basically, i'm following a very simple tutorial. I've extended multiple base classes, and it seems in ANY of my extensions, the variables for all components (e.g., physics, collision, static mesh, etc) all reset EVERY TIME i do a…
stackdev
  • 83
  • 2
  • 8
3
votes
1 answer

Blueprint loop/for/while node with custom c++ blueprint function library in unreal engine 4 (ue4)

I need to create a custom blueprint node. I am using the blueprint function library. The node will look like this: Input: int timedelayforeachloop int numberofloops output: exc loop exc completed loop1.h // Fill out your copyright notice in the…
Random Stuff
  • 172
  • 2
  • 12
3
votes
2 answers

Getting yaw angle between two actors - Unreal Blueprints

I'm working on a VR game in Unreal Engine 4 using Blueprints. I want to calculate the (yaw) angle the user needs to turn his/her gun (whose direction is determined via the position of the motion controllers) in order to be pointing towards the…
amb9800
  • 365
  • 2
  • 5
  • 14
3
votes
1 answer

How can I create an abstract class in code, let a blueprint extend it, and give that blueprint back to code to instantiate?

Suppose I want to create an AI class in code that will be used to control a pawn, but I want my designers to be able to modify the behavior using blueprints for rapid iterations. Suppose I have this in MyProjectBaseAI.h: #pragma once #include…
Ruzihm
  • 19,749
  • 5
  • 36
  • 48
1
2 3
33 34