Category not available?

If I create the BP_MovingPlatform it opens the editor… but there is no Category “MovingPlatform” in the details tab?

I defined them like mentioned in the course

UPROPERTY(EditAnywhere, Category="Moving Platform")
FVector PlatformVelocity = FVector(100, 0, 0);
	
UPROPERTY(EditAnywhere, Category="Moving Platform")
float MoveDistance = 100;

Did you compile it?

Also in your screenshot, you’ve moved down the right pane; where the moved platform would be at the top. Can’t actually see if it’s there or not.

// Fill out your copyright notice in the Description page of Project Settings.

#pragma once

#include "CoreMinimal.h"
#include "GameFramework/Actor.h"
#include "MovingPlatform.generated.h"

UCLASS()
class OBSTACLEASSAULT_API AMovingPlatform : public AActor
{
	GENERATED_BODY()
	
public:	
	// Sets default values for this actor's properties
	AMovingPlatform();

protected:
	// Called when the game starts or when spawned
	virtual void BeginPlay() override;

public:	
	// Called every frame
	virtual void Tick(float DeltaTime) override;

	UPROPERTY(EditAnywhere, Category="Moving Platform")
	FVector PlatformVelocity = FVector(100,0,0);

	UPROPERTY(EditAnywhere, Category="Moving Platform")
	float MoveDistance = 100;

	FVector StartLocation;
};

Mine looks like this.

1 Like

Hmmm… I had compiled it.
Nevermind, I copy&pasted your code and recompiled and now it shows up. Thanks :slight_smile:

No problem, glad I could help :slight_smile:

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.

Privacy & Terms