Adds landscape hack
This commit is contained in:
31
Source/lidarforest/Public/LFLandscapeGrassHack.h
Normal file
31
Source/lidarforest/Public/LFLandscapeGrassHack.h
Normal file
@@ -0,0 +1,31 @@
|
||||
// Fill out your copyright notice in the Description page of Project Settings.
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "CoreMinimal.h"
|
||||
#include "LandscapeProxy.h"
|
||||
#include "GameFramework/Actor.h"
|
||||
#include "LFLandscapeGrassHack.generated.h"
|
||||
|
||||
UCLASS()
|
||||
class LIDARFOREST_API ALFLandscapeGrassHack : public AActor
|
||||
{
|
||||
GENERATED_BODY()
|
||||
|
||||
public:
|
||||
// Sets default values for this actor's properties
|
||||
ALFLandscapeGrassHack();
|
||||
|
||||
UPROPERTY()
|
||||
USceneComponent* Root;
|
||||
|
||||
UPROPERTY(EditAnywhere, BlueprintReadWrite)
|
||||
ALandscapeProxy* Landscape;
|
||||
|
||||
protected:
|
||||
// Called when the game starts or when spawned
|
||||
virtual void BeginPlay() override;
|
||||
|
||||
void UpdateGrass(ALandscapeProxy* LandscapeToUpdate);
|
||||
|
||||
};
|
||||
26
Source/lidarforest/Public/MyActor.h
Normal file
26
Source/lidarforest/Public/MyActor.h
Normal file
@@ -0,0 +1,26 @@
|
||||
// Fill out your copyright notice in the Description page of Project Settings.
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "CoreMinimal.h"
|
||||
#include "GameFramework/Actor.h"
|
||||
#include "MyActor.generated.h"
|
||||
|
||||
UCLASS()
|
||||
class LIDARFOREST_API AMyActor : public AActor
|
||||
{
|
||||
GENERATED_BODY()
|
||||
|
||||
public:
|
||||
// Sets default values for this actor's properties
|
||||
AMyActor();
|
||||
|
||||
protected:
|
||||
// Called when the game starts or when spawned
|
||||
virtual void BeginPlay() override;
|
||||
|
||||
public:
|
||||
// Called every frame
|
||||
virtual void Tick(float DeltaTime) override;
|
||||
|
||||
};
|
||||
Reference in New Issue
Block a user