Let's Try Assignments Q&A

This is the official thread for discussion, issues and Q&A for the Let’s Try tutorial assignments.

Please use this thread if you have any questions, issues or feedback on this series.

The Let’s Try series is a set of tutorials on our Learn Site:

In our Let’s Try series of tutorials we will explore popular game mechanics in standalone assignments. Instead of creating an entire game, we will focus on a single mechanic and the techniques needed to implement it.

Post your questions and the team and we will try to help you out!

IMPORTANT:
If you want to post a script you are having trouble with, please post the whole script that is throwing an error using proper code formatting detailed in the thread below, a screenshot of the public variables in the inspector and copy and paste the error message from the console if there is one.

Known Issues:

  • Please turn “annotations” on, as we try to annotate these videos if any issues are found. Many people turn annotations off, and miss these comments.
3 Likes

It seems the free download asset pack opens in Unity without a download button.

is that the web link for the asset store showing Open in Unity? as it wont give option for download until you have the asset store open within the editor. (i believe)

Should ask you to download once you opened it in Unity, then once downloaded the button will change to Import.
or, with Unity editor open, go to Window > Asset Store and search for ‘Lets try’ from Unity Technologies and it should download and Import from there.

Thank you! :slight_smile:

I had a download button. Maybe you need to wait that the window is fully loaded?

Upgrading from 5.3 to 5.4 fixed it.

i keep getting errors on the crossplatforminput

should i do something about or should i leave it there?

That will be for the FPS controller. You could try re-importing the ‘Characters’ package from Assets > Import Package.

I am not able to access Psychics class at all (Raycast shooting).

It just gives me Compiler errors, it worked in earlier tutorials.

Edit: Just realised i misspelled physics… Problem solved. I am dumb.

If i shot down my shot stop going on and doesn’t hit the floor,it returns to the player in the opposite verse, can you help me??



hello sir,i have a issue on my game is i want my enemy fire a bolt to damage player with raycasthit but the raycasthit cant damage the player and it just like that https://mega.nz/#!3xkXHJDI!L8IqMglFFg-no82moxqQ57BaNNOhC_2kDf1CHJCnvag and please help me solve there are my scriptshttps://mega.nz/#!Hp0zlJ4L!LupVqDPA-yXUUgB98HRB3Whh21iej0gvyAL8oA1uzGA
andhttps://mega.nz/#!Hp0zlJ4L!LupVqDPA-yXUUgB98HRB3Whh21iej0gvyAL8oA1uzGA

It seems that the grenade mesh is missing from the asset package.

Hi, I’m having trouble dragging the GunEnd game object into the Gun End field in the Raycastshoot (script) section of the inspector menu as the Gun End field isn’t there! Help! :frowning:

1 Like

It seems that the raycast is interacting with the character’s collider. Look at the Character Controller component for the FPSController GameObject in the Scene:

2823895--205597--collider_bug_screen.jpg

If you want to see this in-game, alter your RayCastShoot script to redraw laserLine every update (so you won’t have to switch back to the Game view and click to see the results). For example, I changed the first few lines of the Update() function in RayCastShoot.cs to this:

2823895--205598--collider_bug_screen_2.png

If you play with the Radius, Height, or Center options on the Character Controller, you can see when the laserLine starts/stops interacting with the character’s collider.

The fix is simple: Change the Layer of the FPSController to “IgnoreRaycast.” When the dialog asks you if you want to change the children, say No. It isn’t necessary to change the child objects to fix this issue.

Side note: I don’t yet understand why the ray is being cast back into the camera when this interaction happens. There may be some underlying issue that I haven’t discovered yet, but ignoring raycasts onto the character’s collider seems to solve the obvious problem.

Hope that helps!

1 Like

Hi , I want to go to next level? or next stage…But how…? Please tell me. Or Originally it have been only one stage?

How do i make the camera move when the mouse is moving?

https://unity3d.com/learn/tutorials/projects/2d-roguelike-tutorial/adding-ui-level-transitions
and
I saw this on several of the live training videos but cant find which ones right now, but yeah, there’s lots of references if you can look :slight_smile:

http://answers.unity3d.com/questions/149022/how-to-make-camera-move-with-the-mouse-cursors.html

1 Like

Thanks!

1 Like

I’m starting the tutorial and when told to put the C# script into the gun prephab it says
“Can’t add script component ‘RaycastShoot’ because the script class cannot be found”
what can I do?

Please check to make sure that the gunEnd variable has the ‘public’ access modifier and that your script is compiling without errors.