No announcement yet.

Blueprint assigned variables don't stick?

  • Filter
  • Time
  • Show
Clear All
new posts

    Blueprint assigned variables don't stick?

    Hello! I am not sure if I am missing something, but whenever I assign something to a variable from my c++ code exposed to blueprints within the editor, it does not stick when I reset the editor. I tried to package my game, and I get an access violation, assuming this is because the variable is not being set. Here is how I am exposing the variable:

        UPROPERTY(EditAnywhere,BlueprintReadWrite, Category = "Internal")
            TSubclassOf<AWEA_Projectile> Projectile;
    However it does this with ALL variables assigned from the Editor.

    Is this by design or am I missing something here?

    EDIT: I have found out this is a bug. I am not 100 percent sure what is causing it, but if I make a change, I just need to remove the component, compile my BP that the component class in question is attached too, readd the component, set variable, recompile, and everything works.
    Last edited by Darkloud1989; 03-23-2020, 10:55 AM.