Jump to content

How to access variables in other scripts


photo

Recommended Posts

if #include <b.cpp> into a.cpp script; then in a.cpp try to access variable from b.cpp; I get an error! 

 

How to access variables in other scripts?

 

 

 

 

Link to comment

make sure to prepend any namespace defined in b.cpp when refering to it within a.cpp script code e.g. namespace_b::var_name_b

 

If this is not the cause for your problems than please post your a.cpp + b.cpp

Link to comment
×
×
  • Create New...