/
linkfly
/
MasterKnight
Обзор
Документация
Войти
/
linkfly
/
MasterKnight
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
develop
Source/TestModule/Private/TestActor.cpp
27 строк
696 B
Сергей Катревич
lesson 7 hw completed
31 дек 2025, 03:56
31 дек 2025, 03:56
8cebaf4
Код
Авторство
О чём код?
// Fill out your copyright notice in the Description page of Project Settings. #include "TestActor.h" // Sets default values ATestActor::ATestActor() { // 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; Mesh = CreateDefaultSubobject<UStaticMeshComponent>(TEXT("RootMesh")); RootComponent = Mesh; } // Called when the game starts or when spawned void ATestActor::BeginPlay() { Super::BeginPlay(); GEngine->AddOnScreenDebugMessage(-1, 5.f, FColor::Red, TEXT("I'm TestActor from Module")); } // Called every frame void ATestActor::Tick(float DeltaTime) { Super::Tick(DeltaTime); }