CSharpRedotTools / Template

A template used for quickly setting up new Redot 4 C# games.
MIT License
111 stars 8 forks source link

Visualize cannot see values of private members from inherited classes #82

Closed valkyrienyanko closed 1 month ago

valkyrienyanko commented 1 month ago

Have a look at this commit 706e60d67584822daa54d49e14db6d198b27ab2f

Steps to Reproduce Issue:

  1. Set _curState access modifier from protected to private
  2. Remove [Visualize] attribute from EnemyComponent
  3. Run the game
  4. Notice how you cannot see _curState for EnemyComponents even though EntityComponent has the visualize attribute listening to the _curState field
  5. You will get the following message in console: "[Visualize] Tracking 'EntityComponent' to see if '_curState' value changes"