FragMate CommunityLog in

FragMate - Software and Game Developer Community, including Resources, Forums, Marketplace & More.

Share

descriptionAttaching scripts to assets

more_horiz
I have developed scripts which translate game objects on mouse drag. Also I downloaded some assets form assets store, but my script is not working on these assets. These assets are even detecting mouse raycast.. I am new to unity.. help please Sad

descriptionRe: Attaching scripts to assets

more_horiz
Could you add a DebugLog function?
Debug.Log("Raycast is working Smile what is not?"); - something like that, based on what the lang you are using. Make sure aswell you are using the mouse 1 input, if you insert that little piece of code into your raycast function then it should have that message at the bottom in the console view. If it does show, then your raycast function works, if not then you have a raycast error and you may need to reformat the way you scripted it. If it does work, then you have a problem with the code within your raycast function, this could be just a simple grammatical error.
Best Regards
-BryceCain25

_________________
-BryceCain25

descriptionRe: Attaching scripts to assets

more_horiz
Thanks Smile I managed to do that somehow Razz
Permissions in this forum:
You cannot reply to topics in this forum