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

How delete textures from project without opening Unity3d?

With last changes in project i change textures resolution from 1k to 4k. After this unity shows error with lack of memory. Currently i can't open project in unity. How i can delete (or change .meta...

View Article


How to define target.position in Vector3.MoveTowards?

So I'm looking at http://docs.unity3d.com/Documentation/ScriptReference/Vector3.MoveTowards.html but I do not understand how to define target.position. I want to move the object in it's Y axis +1 but I...

View Article


create 2d sprite and assign texture from script

Hello, I'm new to Unity and I'm having a hard time figuring out how to create a 2d object from script and then assign a 2d texture from an image asset with a multiple frames. in the editor I have...

View Article

Mecanim Direction Parameter sticking to -1.5

Hi all, I've run into a pickle and would like to ask some help. Basically I have a character set up in such way that it walks around relative to the camera as in a common 3rd person game, the problem...

View Article

What should be the options visible to me when doing an iOS build on Windows?

Since it's not working properly I am wondering if there are options missing...? I have a Pro (+iPhone Pro) license and on Windows the iOS build settings look like so: ![alt text][1] I am not sure if I...

View Article


Multi-resolution support strategies for 2d games

Hi, I am trying to target a wide range of resolutions for a 2d titles we are starting to work on. I previously worked with different middlewares and I am trying to achieve something like the 'Fixed...

View Article

Problems while making Bomberman.

First of all, I'm really new to Unity. I'm currently using latest Unity and C#. My goal is make Bomberman at any cost for learn Unity. Currently I made some progress. I uploaded it, you can test. And...

View Article

Active in Hierarchy

I am an artist and I can't figure out the new activate/deactivate scripting method for gameObjects. I just can't upgrade to the new method, nothing works. Here's what I have before unity 4.x //This...

View Article


Need help to modify rotation script. (Quaternion)

Hi,just a simple script,who rotates target around x axis when "v" button is pressed. Anyway i cant figure out how to make that target rotates on y axis,i already tried to edit Vector3.up to...

View Article


Center an object in Ortographic view

Hi, I have a complicated problem to solve: I have a rectangular GameObject (a wall) that have to be centered inside an ortographic camera. It has to be zoomed in as much as possible but at the same...

View Article

Keeping an object in camera view in multiple screen resolutions?

I am making an arcade shooter, and I want the player to always be in a certain area. At one screen resolution, the player maxes out at 14 and -14 for left and right, but in another resolution it's 12...

View Article

DragRigidbody Script, distance works in reverse?

I'm using the standard drag rigibody script that comes with unity and it seems like setting the distance makes it not work close up like it's the minimum distance, I want to limit the max distance I...

View Article

Change pivot without changing position.

Hey guys, I was wondering of there was a way to change the pivot point of a mesh without the the objects moving in the scene. I have a bunch of arrows in a scene that I need to scale. However, I need...

View Article


Make the game stop if you get hit by enemy object

So what i wants to know is, how i make the game stop when, you get hit by a enemy object. if we say the health is 1; var Health : int = 1 And then something like if (Health == 0) (STOP GAME) Something...

View Article

What is wrong with my zipline script?

Hi, I am making a zipline thing, and I'm almost done, but there's one error that I get when I walk over a trigger, it says "NullReferenceException: Object reference not set to an instance of an object...

View Article


Set screensize for screenshot

So i found this code that takes screenshots of my game view works nice just that it captures the entire screen but i would want for it to capture just the centre of the screen which is where the real...

View Article

Destroy doesnt work

public GameObject bullet; bullet = GameObject.FindGameObjectWithTag("bullet"); if(bullet.transform.position.x >= 15) { Destroy (bullet.FindwithTag("bullet)); } But doesnt work. Why ? (sorry my...

View Article


Show which direction the Rigidbody is accelerating in?

Hello. I have a rigidbody that I can AddForce to and change its speed, etc. I have not been able to figure out how you can make a little line or arrow that shows what direction you are travelling in....

View Article

Trying to access a variable within for

Hello, first of all, I want to say I have no background in coding but I am trying to learn it myself through many sources. My question is how to access the "i" value generated by the for loop within my...

View Article

Skinned Mesh fine in preview, floats above ground in build

recently one of my skinned meshes began floating above the ground after the build is made. this character does NOT do this when playing the scene from inside unity. it has rigidbody with gravity on, a...

View Article
Browsing all 171066 articles
Browse latest View live


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