How to read texture path from mesh surface material?

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

Hi all,

I’m trying to get the full path to a texture that is linked to a Spatial material in the mesh. The AlbedoTexture’s ResourcePath gives me something like “res://chanm_body.material::2”. Both mesh and instance seem to give the same result.

The section in the (base) mesh is Surface 1 → Material → Albedo and there we have Texture and Image. The Mesh instance does not have any overrides set.

I’ve tried with mesh.SurfaceGetMaterial and meshInstancegMeshInstance.GetActiveMaterial and GetSurfaceMaterial.

Or does this mean that the textures are embedded somehow?
Language: C#

Best,