Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Fill out your copyright notice in the Description page of Project Settings.
- #include "MyProject.h"
- #include "MyActorComponent.h"
- // Sets default values for this component's properties
- UMyActorComponent::UMyActorComponent()
- {
- // Set this component to be initialized when the game starts, and to be ticked every frame. You can turn these features
- // off to improve performance if you don't need them.
- bWantsBeginPlay = true;
- PrimaryComponentTick.bCanEverTick = true;
- // ...
- }
- // Called when the game starts
- void UMyActorComponent::BeginPlay()
- {
- Super::BeginPlay();
- // ...
- }
- // Called every frame
- void UMyActorComponent::TickComponent( float DeltaTime, ELevelTick TickType, FActorComponentTickFunction* ThisTickFunction )
- {
- Super::TickComponent( DeltaTime, TickType, ThisTickFunction );
- // ...
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement