Replace reference in Blueprints should link floats and doubles

The reason why the native variable doesn’t appear in the Replace References window is because the Blueprint “Float” datatype is double precision while the “float” datatype in C++ is single-precision.

Workaround:

  1. Declare/Define the native variable as a “double” type and compile
  2. Use Replace References in the Blueprint
  3. Change the native variable to “float” type if single-precision is desired and recompile
1 Like