Playmaker Forum
PlayMaker Updates & Downloads => Share New Actions => Topic started by: Rabassa on November 08, 2018, 05:12:39 PM
-
Hello,
Is there anyway to get the material index of mesh? For example if I have a player walking on an object that has multiple textures, I'd like to know what texture the player is currently on.
Thanks,
rich
-
Hi,
Ok, can you try the action GetRaycastHitInfoMaterial on the ecosystem, I just made it, let me know if it works for you.
- you need a meshCollider to raycast onto
- you need to reference a meshRenderer or a skinnedMeshRenderer.
If it doesn't work, can you send me a prefab of the object ( with mesh and material and meshcollider) you are trying to get material from?
Bye,
Jean