forked from timdecode/UnrealComputeShaderExample
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDrawPositionsComponent.h
More file actions
33 lines (24 loc) · 824 Bytes
/
DrawPositionsComponent.h
File metadata and controls
33 lines (24 loc) · 824 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
// Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include "CoreMinimal.h"
#include "Components/ActorComponent.h"
#include "DrawPositionsComponent.generated.h"
UCLASS( ClassGroup=(Custom), meta=(BlueprintSpawnableComponent) )
class COMPUTESHADEREXAMPLE_API UDrawPositionsComponent : public UActorComponent
{
GENERATED_BODY()
public:
// Sets default values for this component's properties
UDrawPositionsComponent();
protected:
// Called when the game starts
virtual void BeginPlay() override;
public:
// Called every frame
virtual void TickComponent(float DeltaTime, ELevelTick TickType, FActorComponentTickFunction* ThisTickFunction) override;
protected:
void _initISMC();
void _updateInstanceTransforms();
protected:
TArray<FTransform> _instanceTransforms;
};