-
How can I retrieve the metadata of a Terrain3DTextureAsset in C#?I would like to retrieve the metadata of the Terrain3DTextureAsset after touching Terrain3D with rayCast3D. My current code If you can help me, that would be great. |
Beta Was this translation helpful? Give feedback.
Answered by
TheOrioli
Nov 27, 2024
Replies: 3 comments 5 replies
-
Assuming you have access to the Terrain3D node: var someData = Terrain3D.Get("assets").As<Resource>().Call("get_texture", textureIdx).As<Resource>().Get("whatever you want"); |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
TokisanGames
-
Beta Was this translation helpful? Give feedback.
3 replies
-
To clarify my case Red arrow are RayCast3D |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Assuming you have access to the Terrain3D node: