Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Using C++ in Unreal Engine 4 follow these steps https://docs.unrealengine.com/latest/INT/Programming/QuickStart/index.html and create a FloatingActor class. In addition, add a variable that can be edited in
Using C++ in Unreal Engine 4 follow these steps https://docs.unrealengine.com/latest/INT/Programming/QuickStart/index.html and create a FloatingActor class. In addition, add a variable that can be edited in blueprints and the editor. Submit the cpp and h files of that class.
Adding variables to unreal editor
UCLASS()
class AMyActor : public AActor {
GENERATED_BODY()
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category="Damage")
int32 TotalDamage;
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category="Damage")
float DamageTimeInSeconds;
... };
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started