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

problems with iAD banner

as it says im having problems putting a simple iAD banner at the bottom of my screen, for some reason i get errors in the code a lot of them even when i use the standard unity doc code, any help...

View Article


Script doesn't continue when i dont hit anything with raycast2D

So yeah. Maybe its just me thats tired or something. But in this code i've made here there is a wierd error(null reference exeption). `public function Slash(){ var hit: RaycastHit2D =...

View Article


Is there a way to show collision in-game?

I'd like a way to make my collision boxes become visible in the game mode so I can test and find problems easier.

View Article

Animate Toon Water on Plane?

Hi, so i'm working on a HD toon style water for the asset store and personal projects. Check it out:![alt text][1] [1]: /storage/temp/22095-unity+2014-02-12+17-46-33-55.png The water consists of three...

View Article

DOF in forward rendering

Hi. I need help with something. If this question is in anywhere in the forum you can give me the link and delete this post. My problem is with depth buffer in forward rendering. I have made a image...

View Article


WaitForTarget FPS - VSync

Hello, I'm getting really high levels of 'WaitForTargetFPS' within my console, which is really slowing down my iOS devices. I've told it to try and reach a frame rate of 60, and its only doing 40 (this...

View Article

Can you help me with arrays?

I know there is a solution to this. It seems that I used to know how to do this. Is there a way to make, say, an array, and in this array, have objects with "options" or more arrays?

View Article

Scrolling level Instantiate after cycle

When I run my level in generates 10 obstacles, similar to Mario pipes. these then scroll across the level and finish about position.x 9000, I need my script to generate some more at that point and...

View Article


How do you change a sprite after an amount of time?

Hi, I'm trying to make an object in my game where it's sprite changes once it collides with a certain object, but then changes back to the original sprite after 1-2 seconds. I have the first part, but...

View Article


Quickly Updating Texture2d in Unity from Android Java

Since each platform has its own decoder for h264 video streams, I need to have a general Unity program (hence the name Unity) that is able to get frames quickly from the platform on which it is...

View Article

How to make top-down objects rotate to face another?

As the title says, I am making a top down style game, and am having difficulty getting enemies to rotate to face the player properly. I found this code from another post, and have tried tweaking the...

View Article

Why does my sound play multiple times using touchcount?

I have a simple script that checks if there is a finger on the screen, then plays a sound, then adds velocity to make a character jump. Everything works fine except when I run it on the iphone, the...

View Article

Deploying Simple Project in Xcode to iOS Fails

I have been trying to get a Unity app to deploy properly onto my iPad Air. I have tried three different apps, one that I have been developing, Angry Bots, and a simple scene with a cube in it. They all...

View Article


Transform.Parent not working

Hi all, I am trying to have a shield that gets created around the player once you press "E". However only the shield gets created and does not want to follow the player. Here is my code: public...

View Article

why cant i call this function?

ok so ive been working at this for ages and I can't see whats wrong with it. When the heart object collides with the player its supposed to call a function from the GameManager script to increase his...

View Article


More refined gunshot system

Hi, iam developing an horror FPS game, in this moment iam scripting the gunshot system, buti think my code is too complicated, iam starting with this languages (JS, CS) these are my codes: 1)--- Damage...

View Article

Unity Voxel Terrain and structures

I've tries searching for ways how to do it but couldn't find any usable sources, but pretty much what I want to do is have the ability to generate random structures (such as cliff overhangs, giant...

View Article


How to move an 2D object to mouse click position in C#?

Hi, after quite some time of searching and trying out several examples (without success), I thought I give it a try and ask the community myself… I imagine this to be a newbie problem for many of you,...

View Article

How Can I Detect Collision For Part of a Sprite?

I'm looking to create a 2D game (using the new 2D tools) where characters can swing swords and I want to be able to detect if something collided with just the sword, and not the rest of the sprite. I...

View Article

Storing data in the iOS keychain

I'm trying to work out how to store data in such a way that it can be shared between several iOS applications. As far as I can tell, the only way to do this is with a keychain with an access group....

View Article
Browsing all 171066 articles
Browse latest View live


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