Questions tagged [unity]

Unity is a cross-platform game creation system that focuses on easy art pipeline process. It consists of a game engine and an integrated development environment. The game engine's scripting is built on Mono.

Filter by
Sorted by
Tagged with
0
votes
6answers
783 views

How to add tiles randomly?

I made a set of 10 different "ocean" tiles, all interchangeable with one another, and I'd like to randomly attach these 10 different tiles together in different combinations over a large rectangular ...
0
votes
1answer
86 views

My GUI stopped working?

Okay I bought this asset online so I would like not to show the whole script. The problem is this asset stopped working when I updated from unity 5.0 to 5.1.2. The script is for a controller GUI ...
0
votes
1answer
180 views

Which MoCap Animation Sits

I have an UMA that I want to be in a sitting position basically forever. I assume I need an animation that will put him in an idle sitting position. I found the MoCap Huge Animation library for free ...
2
votes
2answers
5k views

I can't add script in unity

I'm a beginner in unity so I got this problem. Here is the script: ...
1
vote
2answers
4k views

How to bounce the player away after attack by enemies?

I creating a 2d platform game. I would like to bounce the player away after hit by the enemy, so the user get another feedback beside the sound effect. How can I achieve my wish? Use the following ...
1
vote
1answer
106 views

Unity LoadLevel Loads Late

We are developing a 2D game for Android on Unity. It's our first project, we don't have a lot of knowledge on Unity. We have 2 scenes, in first scene there is only a "Play" button. When that button ...
3
votes
1answer
6k views

Calling an android method from Unity3D with a JAR plugin

I am developing a game with Unity only for Android platform and I am requiring to share content of my game through an intent so I have implemented a JAR plugin according to several tutorials with this ...
3
votes
1answer
2k views

Limiting x and y movement so you can't go off camera

So I want to make an on rails shooter like that of Star-Fox in the Unity engine. What I would like to do is limit the ship from moving off the screen. You move along the X and Y axis so i wont have to ...
1
vote
1answer
75 views

Update Based Animation Position Values?

Is it possible to control the key-frame/sample value or the time based position in the animator? I’ve set a global float that identifies the rotation of an object on its Y axis and I would like the ...
-1
votes
2answers
436 views

Generating hidden box collider between two game objects in unity

I'm trying to implement flappy bird clone using unity. I'm creating two obstacles at random y position. I would like to create a hidden box collider game object between them, but I'm struggling with ...
0
votes
1answer
162 views

deformable and variable text on a mesh in unity

So I am working on a sports game and I want the jerseys to be customizables with names and numbers. I have the character models as a single mesh however I can't place a text on the back of the jersey ...
0
votes
2answers
1k views

Fixing enemy behavior state machine in Unity

I'm working on a state machine for my game's NPC. The only thing I can't to get work properly is the hit sequence. The hits register. What I would like to happen is for the attack sequence (animation)...
1
vote
2answers
3k views

How to resize a button without resizing its text

I think it is done with the Anchors of the Rect Transform. I have tried all the possible combinations of the following default anchors: Unfortunately, when I resize the button in the Scene, the text ...
1
vote
1answer
113 views

Selecting Objects to Prefab Unity

So... I have a tree object and I have duplicated it to have many trees in the scene. So, I have about 200 trees in the scene. Before duplicating I forgot to add a tree as a prefab. Now, is there ...
1
vote
0answers
58 views

gazing and lip syncing in Unity 5.2

Is it possible to achieve gazing or lip syncing in Unity 5.2 at all, similar to Locomotion done through MecAnim?
2
votes
1answer
628 views

Unity + Oculus Rift - Setting field of view or rendering part of display

I need to render a small portion of the display to a texture. I found a script to simulate a scissor rect by modifying the projection matrix - Unity 5 doesn't seem to provide any out-of-the-box ...
0
votes
3answers
104 views

WaitForSeconds isn't working

I have a class which is changing the player speed. Here is the code: ...
3
votes
1answer
982 views

Using XBox 360 controller in Unity game - game doesn't recognize axis movement

I have a problem with the usage of XBox controller in Unity game. I connected the controller to the PC and it works fine, I also managed to use it in the game itself - I'm using "A" button to fire and ...
4
votes
2answers
912 views

What would a good hacking gameplay look/feel like?

In real life, 'hacking' (that is, using brute-force attacks to guess a password) is not very interactive. In fact, it works pretty much independent of any user from the moment you press Return until ...
0
votes
0answers
667 views

Firing particle systems on prefab objects

In my game, I Instaniate several of the same prefabs for a group of player controlled characters. The prefab contains child objects with particle systems attached. For example one of the particle ...
3
votes
1answer
805 views

Play audio clip from where it left

I spent some time playing with AudioSource.time & AudioSource.timeSamples and read some posts about them. So I get that due to audio compression I can't rely on .time for accuracy so I need to use ...
1
vote
1answer
1k views

Decentralized Matchmaking in Unity?

I'm making a card-playing game, similar to Magic Workstation. I've been looking into several options for networking. I have a working LAN version with the build in Unity networking, as well as Photon ...
3
votes
1answer
90 views

Keep track of VoxelData/NPC in parallel Level

Background I'm tring to make a First-Person-Shooter Game in a Voxel-World (Finit Size) with Unity3d. The Player has some kind of a Base that he has to protect against Enemy units. There are also ...
0
votes
1answer
1k views

How can I adjust steer angle based on speed in Unity?

I'm following this (https://www.youtube.com/watch?v=kAEpLX3rfms) video on how to make a car in Unity. But my car doesn't lower the steering angle based on the speed of the video. The idea was that you ...
1
vote
2answers
5k views

Get the current time of animation using script Unity3d

I want to know the current time of the played animation using script in Unity3d. I tried using currentState.normalizedTime but this time is not the time of the ...
0
votes
1answer
905 views

Overlay Image on Mesh Unity

I have a whiteboard object that I would like to put images/pdfs/powerpoints on. I am not sure how to overlay an image on a white shader. I looked at this post: Loading .PNG file and using it for ...
1
vote
2answers
396 views

Rotate Character towards Moving direction

So my Problem is that my Character is always shooting in the way it is looking. Unfortunaly my solution seems to be a very bad one. I am not really cabable of aiming with my solution. Neither with ...
2
votes
2answers
7k views

Unity set ui image as active onclick

I want my button to activate an inactive ui image in the hierarchy through c# called "Responded_A" when the "Response_A" button is clicked. I assume this will use setActive in someway, but I'm just ...
1
vote
2answers
1k views

Camera follow rotating ball - ortogonal direction

I have a ball, that has been moved via addForce. It colides in the scene with objects, leading to rotation in all axes. I want a camera to follow this ball but from the side (direction ortogonal to ...
0
votes
1answer
564 views

Unity GridLayoutGroup children ignoring resizing

Can anyone explain why, in the editor I get: while, on my Galaxy S6, I get: My Panel UI element (which is the parent) has the ...
0
votes
2answers
246 views

Unity - Text not properly align

My text doesn't seem properly align to top left even I already set it in Rect Transform. Please advice. Thank you.
1
vote
1answer
2k views

Creating a GUI Countdown Timer Unity5

This was originally posted as a follow-up comment to https://stackoverflow.com/questions/30714357/guitext-in-unity-5-need-an-alternative , but I'm asking it here as a dedicated question as per the ...
1
vote
1answer
680 views

Overriding all object inspectors in Unity

How can this be done? I want to add a single label to every component( including non-misbehavior ones ) in the inspector. I've tried: ...
0
votes
2answers
852 views

Can I have a fixed-angle sprite with a non-fixed-angle CircleCollider2D?

In Unity2D, can I have a fixed-angle sprite with a non-fixed-angle CircleCollider2D? I would like to move my character using the circle physics (without fixed-angle), but display him always as if he ...
1
vote
1answer
726 views

Embed a real city in a game and use data to find and display paths [closed]

First of all this question is gigantic but it's mainly about Unity, maps, pathfinding, and real data. The problem. In my game the player sees the map of a real city (in 2D), it’s exactly the same ...
0
votes
1answer
125 views

In unity, how do I rotate a vector in relation to the player?

I am making a radar script in a unity FPS game project I am making for class. I already have a working example of a radar script that works in relation to the player's position. However the rotation ...
1
vote
0answers
660 views

Water drops on camera

How can I create water drops on camera something like we see in Ripitude GP, I tried using Unity's default GlassStainedBumpDistort shader though its performance heavy on mobile plus it do not let ...
0
votes
1answer
3k views

How to tween to move an object in arc?

Okay, so I think I need to use a tween in order to move an object in my game. I have some little green dudes that need to move in an arc (bezier) to a location that is clicked by the user. My game ...
0
votes
2answers
234 views

Unity 3D, Making contiguous looking worlds

Im currently involved in making a third person cooperative mobile game in Unity and in said game there will be an area for players to walk around in with various elevations and whatnot throughout the ...
0
votes
3answers
8k views

Calling and functions/methods from different Classes in Unity

I am learning some of the basics with Unity and am running into calling/sending code to a different script. For example, the code below is a basic menu of options. I have a different Scene set up in ...
1
vote
2answers
610 views

Unity 5 Dynamic Button Creation with Event Parameters

According to the documentation, you cannot instantiate buttons except via prefab instantiate. http://docs.unity3d.com/Manual/HOWTO-UICreateFromScripting.html You might wonder why we don’t have a ...
3
votes
1answer
327 views

Do I have to resize and manually move the checkbox with a Unity Toggle?

I have a Toggle UI element (the stock one from Unity 5.2), and when I resize it to make the text legible, the checkbox doesn't resize or move: Am I missing something, or is the control implementation ...
0
votes
1answer
97 views

Can I use sin or cos for the non uniform rotation in unity 5? [closed]

I have few objects which I have to rotate on an ellipsoidal track and speed is changeable at the run time because its a betting game in which racing will be done so speed values will come from the ...
0
votes
0answers
1k views

Unity - OnRenderImage hides UI

I have a component which renders a few different cameras and the images. However, this obscures my UI when in Screen Space - Overlay mode. I can put the canvas in <...
0
votes
2answers
1k views

Shooting at mouse in unity

I'm using unity and trying to get my bullet to shoot at a target. I am clicking the mouse and I'm wanting to fire my bullet in that direction. I have gotten the coordinates of the mouse click and ...
1
vote
1answer
3k views

Unity3d Transform.position float range

I thought floating point has a very large range, for example up to 3.4*10^38. However today I tried to set my player's Transform.position.x to 1000000 in the GUI and it gave me a warning: "Due to ...
1
vote
1answer
34 views

Animation package from Assert Store not working probably with Unity Model/Custom Model?

I downloaded the animation pack from here: https://www.assetstore.unity3d.com/en/#!/content/25794 The assert contains a fbx file, which contains a bunch of animations. Then in Animator window I added ...
0
votes
0answers
221 views

How do I use Bezier Curves in unity?

I have to rotate few objects on an ellepsoidal(Capsule shaped) track and at the run time speeds are assigned to the objects from the server as this is a betting game which I am developing in Unity 5 ...
1
vote
1answer
1k views

How to find the closest point on a plane

So I have this terrain with a perpendicular plane setup, now I want to move the vertices of the plane to their closest resp. vertices on the terrain. I made a drawing to illustrate my thoughts. ...
0
votes
2answers
294 views

Problem with animations from Blender

I have a model that I made in Blender and also I have a gun reloading animation, the model has a rig. So it appears that the animation of the rigged model is devided into 25 different animations but ...

1
208 209
210
211 212
255