Unity Ninja Unity 3D Forum
To have exclusive access to all downloads, recourses and links within this forum, a free registered account is required. Just a heads up Wink
Share
Go down
avatar
Member [Lv. 2]
Member [Lv. 2]
Posts : 5
Points : 1305
Rep : 0
Join date : 2015-01-04
View user profile

Attaching scripts to assets

on Sun Feb 15, 2015 9:51 am
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
avatar
SUPER MODERATOR
SUPER MODERATOR
Posts : 279
Points : 2143
Rep : 58
Join date : 2013-12-16
Age : 17
Location : Boise Idaho United States
View user profile

Re: Attaching scripts to assets

on Sun Feb 15, 2015 3:20 pm
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
avatar
Member [Lv. 2]
Member [Lv. 2]
Posts : 5
Points : 1305
Rep : 0
Join date : 2015-01-04
View user profile

Re: Attaching scripts to assets

on Sun Feb 15, 2015 4:40 pm
Thanks Smile I managed to do that somehow Razz
Back to top
Permissions in this forum:
You cannot reply to topics in this forum