Skip to content

Instantly share code, notes, and snippets.

@zerescas
zerescas / RotatingActor.cpp
Last active July 6, 2023 12:17
Create UStaticMeshComponent variable from C++ | Setup it in Blueprint | Rotate UStaticMeshComponent from C++
// Fill out your copyright notice in the Description page of Project Settings.
#include "AnotherCamera/Public/RotatingActor.h"
// Sets default values
ARotatingActor::ARotatingActor()
{
// Set this actor to call Tick() every frame. You can turn this off to improve performance if you don't need it.
PrimaryActorTick.bCanEverTick = true;
}