Raycast 3D without result

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Itention

Hello, im getting this error:

Invalid get index ‘position’ (on base: ‘Dictionary’).

Whats wrong with this code? (Error is in line 29), Dictionary is empty but why?

:bust_in_silhouette: Reply From: Ole

Try changing line 29 to this:

print(str(result.position))

… forcing ‘position’ to be displayed as a String … I’m unsure if that fixes your problem, but it probably will :slight_smile: