You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
An indent, tab I guess, not sure. caused the method not to be found. Tried reloading project, delete .Godot folder to re-import, restart of Godot + visual studio core. Nothing helped.
characterNode is of type character3D
stateMachine is just a simple node
switchstate is a method in stateMachine
Eventually I just looked at the code , found that the method name SwitchState was indented too much to the right, so I moved it back to the correct position, and suddenly all was well. I tried to replicate the error again, by using a combination of tab and or space bar. But could not replicate it.
After that the above code returned, what was expected:
Player
StateMachine
Void SwitchStateT
Because I could not replicate it, I find it useless to attach the godot project for review. if needed, do tell, then I attach.
Steps to reproduce
was just coding, accidentally indented or something else, causing the method not to be found.
Minimal reproduction project (MRP)
no more info. cannot reproduce bug somehow.
The text was updated successfully, but these errors were encountered:
But where is the method SwitchState declared? Please show some more of your code, there's no such built-in type so it's important to get an idea of what you are doing
Tested versions
4.3 stable mono only tested and found this bug
System information
Godot v4.3.stable.mono - Windows 10.0.26100 - Vulkan (Forward+) - dedicated NVIDIA GeForce RTX 4090 Laptop GPU (NVIDIA; 32.0.15.7216) - AMD Ryzen 9 7945HX3D with Radeon Graphics (32 Threads)
Issue description
An indent, tab I guess, not sure. caused the method not to be found. Tried reloading project, delete .Godot folder to re-import, restart of Godot + visual studio core. Nothing helped.
characterNode is of type character3D
stateMachine is just a simple node
switchstate is a method in stateMachine
Then I typed the code:
it returned:
Player
StateMachine
null
Eventually I just looked at the code , found that the method name SwitchState was indented too much to the right, so I moved it back to the correct position, and suddenly all was well. I tried to replicate the error again, by using a combination of tab and or space bar. But could not replicate it.
After that the above code returned, what was expected:
Player
StateMachine
Void SwitchStateT
Because I could not replicate it, I find it useless to attach the godot project for review. if needed, do tell, then I attach.
Steps to reproduce
was just coding, accidentally indented or something else, causing the method not to be found.
Minimal reproduction project (MRP)
no more info. cannot reproduce bug somehow.
The text was updated successfully, but these errors were encountered: