UnityNinja Community
Would you like to react to this message? Create an account in a few clicks or log in to continue.

UnityNinja CommunityLog in

UnityNinja - Video Game Development Community, including Resources, Forums, Marketplace & More.


descriptionAttaching scripts to assets EmptyAttaching 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

descriptionAttaching scripts to assets EmptyRe: 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

descriptionAttaching scripts to assets EmptyRe: Attaching scripts to assets

more_horiz
Thanks Smile I managed to do that somehow Razz

descriptionAttaching scripts to assets EmptyRe: Attaching scripts to assets

more_horiz
privacy_tip Permissions in this forum:
You cannot reply to topics in this forum