Raycast get tag from spatial mapping collider
I have a gameobject spatialmapping with a spatial mapping collider and renderer component. I want to use raycast to get the tag "Environment" I set in the inspector. When I start the game it just returns untagged...
Inspector:
Code:
}else if (focusedObject.transform.tag == "Environment")
{
if (moveMode)
{
if (moving)
{
moving = false;
}
}
How can I solve this? Must I use the surface parent? I tried it and it didn't work...
I'd really appreciate any help :)
inspector.png
(64.9 kB)
Comment