Description

When SetActorEnableCollision(false); is added to a class constructor and a hot reload is preformed, the SetActorEnableCollision(false); is ignored and collision is not updated for that actor.

Steps to Reproduce
  1. Open UE4 Editor (any project)
  2. Add code to project based on Actor (MyActor)
  3. Create Blueprint based on MyActor (MyActorBP)
  4. Add / set static mesh component to cube mesh through the editor
  5. Add instance of MyActorBP to the level
  6. PIE
    • Collision is enabled as expected
  7. Add the following line to MyActor constructor
    • SetActorEnableCollision(false);
  8. Preform a hot reload
  9. PIE

Result:
Collision is still enabled for the static mesh of MyActorBP

Expected:
Collision is turned off after adding SetActorEnableCollision(false); to constructor.

Have Comments or More Details?

Head over to the existing Questions & Answers thread and let us know what's up.

0
Login to Vote

Duplicate
ComponentUE - Gameplay
Affects Versions4.13.2
CreatedOct 31, 2016
ResolvedDec 1, 2016
UpdatedFeb 5, 2017
View Jira Issue