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

How can I create a GUI texture?

I need a gui texture that will be over my screen and i want it so its like it is recording from a camera. Thanks (I have photoshop cs6 as well if that helps) ALSO This is a secondary question, i want...

View Article


c# code to read mecanim current animation

So I recently started working with mecanim and am having a bit of a hard time figuring some things out. Currently I am looking for a line of code that will be put into an if statement that would be...

View Article


Can a big resources.assets file cause issues on iOS ?

Hi, I'm working on an iOS project, targeting the iPad mini. I've come to find it handy to put most of the UI textures in the Resources folder and load them with Resources.Load(), instead of assigning...

View Article

Using Third Party API

How do I import a third party api into a Unity project? Where do I put the api files? Jason

View Article

Bullets shooting the wrong way with AddForce

So my project right now has two "bases", one on the right and one on the left. Each base has units going toward the opposite base and when they get in range of eachother, they are supposed to stop...

View Article


Particles suddenly dissapear after bouncing on plane

I have been struggling with this thing and I have only come to notice that this only happens for high damping, or low bounce. If that is the case, the particles are created normally during the set...

View Article

what is needed to get WWW Post working correctly

I have been trying for some time to get server interaction between a server, and Unity set up. I can do pulls(GETs) fine, but POST just does not work. my question is what is needed both in terms of...

View Article

Applying Tileable Texture to Imported Mesh

Ok, this may be an easy question, but can I apply a tileable texture to my imported mesh without UV unwrapping it. There is really no reason to unwrap it, as the texture should just be able to be...

View Article


How to update new frame while another is computing?

Hi! I'm doing a checkers program and I want to show to screen the human while the program is computing the move of the AI. Here goes the transition between the Human and Computer move: void...

View Article


Two-finger scroll gesture recognizing on iphone

I want to change camera's pitch angle when two-finger scroll up or down like the Google Map. How can i recognize the two-finger scroll gesture? TIA! PS. My try Vector2 scroll0 =...

View Article

Anybody knows android inapp purchase detailed tutorials/documentation?

Guys, I'm working on game in which there is inapp purchase for android platform. I need any documentation or tutorial on how to make it happen. Help me!

View Article

Unity Facebook Lib : Android, IPhone, IPad, WebPlayer...

Hello everyone, I saw a dozen of posts with tricky way to achieve a Facebook Connection (Wall post etc...). But are there some libraries that can achieve that ? I didn't found any post or question...

View Article

Math help if possible, angle calculation

Hi, Am wondering if anyone could help me with some math if possible. Am trying to calculate the angle differency between my "vision" (Camera Y) and direction between objectPosition - myPosition, I got...

View Article


rocketscience - how to find out what force is needed to hit a specific target

hi folks! I have two plates with different positions in space like shown in the image. I need to find out what side-force is needed to shoot a misile from one plate to another. the up-force is given,...

View Article

Problem with instantiate in runtime

Hi. I have this code to instantiate some gameobjects in runtime and define one attribute. public int howMany=3; public int total=0; bool loop=true; public Transform ToClonate; void Start () {...

View Article


Set rotation in script like editor?

In the editor I can set the rotation of something using three seperate components, how can I use the same values in these components in the script? I tried Quaternion.LookRotation but it didn'twork...

View Article

Wait for a animation to finish in unity3d

I have a animation to play in update function in switch case. after animation finish, a boolean get active I written code as case "play": animation.Play("play"); gobool = true; startbool = false;...

View Article


missing object woe beginner

MissingReferenceException: The object of type 'Transform' has been destroyed but you are still trying to access it. Your script should either check if it is null or you should not destroy the object....

View Article

Problem with camera follow script

Hey, I have a very simple Camera Follow script, following a player running on a platform (with AI running besides him). Now when the player & AIs all move on the all axes, I have 1 of the following...

View Article

NullReferenceException: Object reference not set to an instance of an object

#pragma strict import System.Collections.Generic; var loot : ItemClass[]; var Inventory : Inventory; function Start () { Inventory = GetComponent("Inventory") as Inventory; } function OnGUI() {...

View Article
Browsing all 171066 articles
Browse latest View live


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