Not directly - raycasts only hit colliders, so you'll have to add/set the hit game object to the found objects and go from there. I.e. get material/texture from whatever component is using it :)
Post edited by gamingislove on
Please consider rating/reviewing my products on the Asset Store (hopefully positively), as that helps tremendously with getting found. If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
Sure, you can use as many raycast nodes as you want (also, a raycast can optionally find multiple objects). You can add the hit game objects to the found objects, using Add change type will add objects to the list, using Set will clear the list first.
You can't really get the texture, as there is nowhere to put them to. However, you can use the Check Fields node to check which texture or material is used by a component.
Please consider rating/reviewing my products on the Asset Store (hopefully positively), as that helps tremendously with getting found. If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
ok seems raycast cant store the gameobject hit. it has hit point, distance , an normal but no game object..
scratch that you can pull the found game object from all the steps but still cant store it in a variable. but guess thats ok since you can start a tagged machine on the hit object so ill make a request for storing the hit objects in the request forums
Game objects can only be stored in the Found Objects or Global Objects, not in variables.
Please consider rating/reviewing my products on the Asset Store (hopefully positively), as that helps tremendously with getting found. If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
I.e. get material/texture from whatever component is using it :)
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
Follow the game Development on Twitter https://twitter.com/Fore_Lore_Games
or check out the face book page here https://www.facebook.com/ForeLoreGames
Follow the game Development on Twitter https://twitter.com/Fore_Lore_Games
or check out the face book page here https://www.facebook.com/ForeLoreGames
You can't really get the texture, as there is nowhere to put them to. However, you can use the Check Fields node to check which texture or material is used by a component.
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
Follow the game Development on Twitter https://twitter.com/Fore_Lore_Games
or check out the face book page here https://www.facebook.com/ForeLoreGames
scratch that you can pull the found game object from all the steps but still cant store it in a variable. but guess thats ok since you can start a tagged machine on the hit object so ill make a request for storing the hit objects in the request forums
Follow the game Development on Twitter https://twitter.com/Fore_Lore_Games
or check out the face book page here https://www.facebook.com/ForeLoreGames
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
Follow the game Development on Twitter https://twitter.com/Fore_Lore_Games
or check out the face book page here https://www.facebook.com/ForeLoreGames