x

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"

Editor crashes when using BindAction on InputComponent

Starting with UE4 and following this tutorial: https://docs.unrealengine.com/latest/INT/Programming/Tutorials/PlayerCamera/3/

 ATraveller::ATraveller()
 {
      // Set this actor to call Tick() every frame.  You can turn this off to improve performance if you don't need it.
     PrimaryActorTick.bCanEverTick = true;
     //InputComponent->BindAction("Forward", IE_Pressed, this, &ATraveller::WalkForward);
 }
 
 // Called when the game starts or when spawned
 void ATraveller::BeginPlay()
 {
     Super::BeginPlay();
     
 }
 
 // Called every frame
 void ATraveller::Tick( float DeltaTime )
 {
     Super::Tick( DeltaTime );
 
     //FVector NewLocation = GetActorLocation();
     ////float DeltaHeight = (FMath::Sin(RunningTime + DeltaTime) - FMath::Sin(RunningTime));
     ////NewLocation.Z += DeltaHeight * 20.0f;       //Scale our height by a factor of 20
     ////RunningTime += DeltaTime;
     ////SetActorLocation(NewLocation);
     //WalkForward();
     //NewLocation += _movementDelta * DeltaTime * 60.0f;
     //SetActorLocation(NewLocation);
 
 }
 
 void ATraveller::WalkForward()
 {
     //float value = 0.01f;
     //_movementDelta.X += value;
 }

With the code commented in, the editor crashes every time I try to open it. I would suspect it is probably something I am doing wrong with BindAction, or maybe that code is outdated and that web page needs to be altered.

Windows 10 Home i5-4670K 8GB 64-bit

Product Version: UE 4.13
Tags:
more ▼

asked Sep 05 '16 at 08:24 AM in Bug Reports

avatar image

Elefant
1 2 3

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

1 answer: sort voted first

Okay, posted this too soon. Looking at the full code at the bottom of that webpage gives more info. I also was not aware that we could crash the editor with bad code so thought it was a bug.

Thanks.

more ▼

answered Sep 05 '16 at 08:37 AM

avatar image

Elefant
1 2 3

(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