Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

I can't create a blueprint based on a character i made in C++

I can't create a blueprint bade on a charade i made in C++ (I made this code from the Twin Stick Shooter tutorial from Unreal YouTube Channel

 // Fill out your copyright notice in the Description page of Project Settings.
 #pragma once
 #include "GameFramework/Character.h"
 #include "BaseCharacter.generated.h"
 class TWINSHOOTERGAME_API ABaseCharacter : public ACharacter
     //Step 2: Expose a float property
     UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "BaseCharacter")
         float Health = 100;
     //Step 3: Expose a boolean property
     UPROPERTY(BlueprintReadOnly, VisibleAnywhere, Category = "BaseCharacter")
         bool isDead = false;
     //Step 4: Make a helper function, just because we are lazy
     virtual void CalculateDead();
     //Step 5: Expose a method
     UFUNCTION(BlueprintCallable, Category = "BaseCharacter")
         virtual void CalculateHealth(float delta);
     //Step 6: Editor code to make updating values in the editor cleaner
     virtual void PostEditChangeProperty(FPropertyChangedEvent& PropertyChangedEvent) override;
     // Sets default values for this character's properties
     // Called when the game starts or when spawned
     virtual void BeginPlay() override;
     // Called every frame
     virtual void Tick( float DeltaSeconds ) override;
     // Called to bind functionality to input
     virtual void SetupPlayerInputComponent(class UInputComponent* InputComponent) override;

Product Version: UE 4.7
more ▼

asked Jul 29 '15 at 04:39 PM in C++ Programming

avatar image

3 2 4

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

If your class is cleanly compiling, stop the editor and start it again to make sure it has reloaded. Then this class should appear when you "Add New"->Blueprint->Blueprint Class and then search in the "All Classes" list for it's name.

I have a lot of trouble making a new class appear if I don't reload the editor.

more ▼

answered Jul 29 '15 at 05:03 PM

avatar image

480 26 12 45

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question