I have been trying to make a plugin that I wont go into detail on, but i need images of the default roblox materials to use for it. I have tried solution in other posts such as using file paths (rbxassetid://textures/ui/Ice.png), but it hasn’t worked at all. Is there another way to go about it, or am i doing something wrong?
1 Like
-
If you want to grab a file from the contents folder, you must use the header
rbxasset
instead ofrbxassetid
. -
Materials don’t use straight up images for a texture, they use PBR (I think, correct me if I’m wrong), which you can also use by putting a SurfaceAppearance instance in a MeshPart (not supported with regular parts). You also can’t access the textures because they are stored in the PlatformContent folder instead of content. I don’t think there is a way to access PlatformContent.
1 Like