Quantcast
Channel: Latest Questions on Unity Answers
Browsing all 171066 articles
Browse latest View live
↧

Can't add a sub-emitter to a Shuriken particle system component

Is there a reason why I can't add a sub-emitter to a particle system that is a component of a GameObject? Clicking the '+' adds a 'standalone' sub-emitter to the hierarchy, which is not what I want (I...

View Article


OnCollisionEnter multiple objects

Hi, first post here. I'm having a problem getting OnCollisionEnter to work with another object. Basically in my game I have coins that fall down from the sky. The player is supposed to collide with the...

View Article


Highscore script not working from another scene

I was searching the internet and came along a pretty efficient script to record high scores, when i copied and pasted all seemed find and was working, however i essentially needed for the scores to be...

View Article

how can i change this script into fully automatic firing.

hi my current raycast shoot script only shoots one bullet one click at a time. does anyone know how i can adapt this to fully automatic firing. many thanks and heres my script: #pragma strict var Range...

View Article

How can I define where the camera in a 2D game hits a "wall" and stops?

You know how at the beginning of a level in an old school platformer, the camera stays still if you move to the left and only follows you if you move to the right? How do you guys recommend I do this...

View Article


help with character respawn after death (javascript)

Hi all, I am using this script (under this text) for a 2D platform game (my knowledge of programming is very limited). What I am trying to do is make the player respawn after death. **character...

View Article

When does transform.postion = somePosition take place

Hi All, I have trigger box and when my character exit the trigger box the code in OnTriggerExit relocate the charater and set some boolean to true : void OnTriggerExit(Collider other) { //say re locate...

View Article

Console error after selecting Android SDK location

Error building Player: Exception: android (invokation failed) ERROR: unknown error cmd:android list target -c stdout; stderr: Exception in thread "main" java.lang.NullPointerException at...

View Article


Can't build to iOS, but web and OS X builds fine

I'm having an issue building to iOS and Android. I can build to web, Chrome native, and OS X native just fine. Anytime I try to switch platform to iOS or Android, I am immediately welcomed by the bug...

View Article


Workaround for Quaternion.eulerAngles 360 Degree Limit?

Hi guys, I have a camera follow script that uses swipes to rotate the camera when the player is stationary, and to turn the character when the player is in motion (similar to the control scheme in...

View Article

Camera View Problems

For some reason whenever I start a new scene or go into any scene at all the camera viewpoint is gray and I cant see anything I spawn except for a light source. Anyone had this problem before?

View Article

Disabling child camera over network

I have a script which network instantiates two first person controllers. I've disabled the controls with `networkView.IsMine`, but when I play the game, the camera is not disabled and you control the...

View Article

How do I make multiple meshes in the same script?

Hi, I am trying to generate a series of planes between markers that the player can place in the game world, I've got code to generate the meshes but the last mesh is the only one that ever shows up,...

View Article


Problem with static function

I have an issue with my code. I am trying to access some static functions but some things are not working properly in the compiler. static function OnTriggerEnter (other : Collider) { if...

View Article

Trouble timing an emission (false/true bool) with variables

I'm having a little trouble making this work. No emission appears. I have tried using different functions for particle systems. And for some reason I cannot use particle emitter. Here is my code,...

View Article


HELP! Building Player: Exception Android (invokation failed) Error Unkown Error

I have no idea what to do about this. Everytime I build it asks for the location of my android sdk. I point it to my C:\Program Files\Android\android-sdk folder. Then I get this error. Error building...

View Article

Door - Press button to open

Hi everyone. I'm trying to make a game but im stuck in the door opening. I want to like hit the button e and the door open then if i want hit e again and close it. Can someone tell me all the steps to...

View Article


how to install unity (I need it to play a online game)?

Hi. im new here and im in hurry. how to install unity (I need it to play a online game)? please if its not a question or if its duplicated forgive me I will remove it after getting my answer. I have...

View Article

Rigidbody add force relative to any rotation

Hi, currently my main camera holds the cube in front of it, and as I look around the cube rotates as i am turning. My script now only will shoot the rigidbody straight on the right mouse click if the...

View Article

Can unity understand animated edges?

I have a small model with a simple skeleton. I animated the bones and baked the simulation. Also animated a couple of edges. When I imported the model into Unity only the animations attached to the...

View Article
Browsing all 171066 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>