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
1
vote
2answers
101 views

Unity doesn't show always the score

I don't know if this issue is in Unity or in my script, the score work well in scoreText, but in the scorePanel its show before last score like it showing 1 rather than 2; the issue doesn't always ...
1
vote
0answers
182 views

Trouble creating fog and lighting in unity [closed]

I am trying to create a model in unity that looks like this picture by Escher I can create the lattice, however, I can not create the fog and background/lighting effect. When I adjust the fog in ...
1
vote
0answers
308 views

Unity based washing/ cleaning game advice

I'm thinking about a way I can create a washing/ cleaning game as part of a project I'm working on within Unity, but given my lack of experience, I'm having trouble knowing where to start. The goal ...
0
votes
4answers
2k views

Is database necessary? [closed]

Hi I have studied c# for good few months and I'm at intermediate level at the moment. And few days ago I decided to make simple 2D Games like "Mr Jump" after studying Unity. So my question is as ...
3
votes
1answer
890 views

How can use a 3D map with 2D characters (Unity)? [closed]

I tried to search something about it but I can't find any complete or well-explained tutorials about how to use a 3D map with 2D characters and items, like Ragnarok or Final Fantasy Tactics. If there ...
1
vote
1answer
858 views

Unity + Texturepacker: Pivot point in weird positions

When my designer sends me the spritesheets done with Texturepacker and I open them with the Sprite editor, i notice that the pivot point is in extremely weird positions. Way above the spritebox that ...
0
votes
1answer
992 views

Generating objects randomly from prefabs in Unity2D

I am developing an infinite runner using Unity. I have already figured out how to loop a set of backgrounds randomly but I am having problems doing the same for the objects. So, I have a few objects ...
1
vote
1answer
601 views

Unity 3d Forge Networking: Transfer object ownership

I have a simple chess game setup to play around with the Forge Networking asset. I am having an issue where only the server is able to click and drag pieces around the board. If a client attempts to ...
1
vote
2answers
111 views

(2D) Simple AI is not working when Object pooling is used

I am building a top down 2D plane game for practice. Here, enemy has an AI script attached. AI script does the following : Determine whether the object is spawned to the left or right of screen. If ...
1
vote
1answer
57 views

Concerns about APK version compatibility

I'm making a game in Unity, and i want to know if I generate the apk in version 4.1 Jelly Bean he will run in newest versions of android? Can anyone explain me better how the version works?
8
votes
2answers
9k views

Pointers in C# Unity

Hey I've just learned about pointers recently and am wondering how I can use them in c# (I just learned about them in c++) in unity. I do have some questions though. Pointers use low level ...
3
votes
1answer
3k views

Why is Raycast hitting masked layer?

Many questions have been posted on this topic but I'm facing a weird behavior which I could not find an explaination for. I perform a raycast giving it a LayerMask parameter which is defined as ...
1
vote
1answer
3k views

How do I know what button was clicked? (Unity)

I have a prefabbed button (UI.Button) which I'm instantiating ten times: ...
2
votes
2answers
455 views

preventing a camera from getting stuck inside a mesh in Unity

I've a 3rd person camera similar to Mario64. Currently, I'm working on preventing the camera from getting stuck inside a mesh. The goal is to move the camera overhead. This much trickier than I'd ...
2
votes
1answer
4k views

Good practice in implementing multi sprite (as skins) in 2d unity game

so, I want to make such functionality in my 2d game with unity : Multi skin character, with similar control and functionality, and with possible different gimmicks (such as crossy road's ...
1
vote
1answer
212 views

2DRaycast is shooting slightly in wrong directions

I wanted just a simple 2DRaycast, which points from my character to my mousePointer. So I found the following code in the Internet, most people seem to use it like that. So I tried it, but it isn't ...
1
vote
1answer
554 views

Best practice for implementing overall / weekly / daily highscores?

So I'm setting up social leaderboards and I want there to be daily weekly overall high scores. The way the scoring works is each score is tied to a user after the user logs in so the scores need to ...
1
vote
1answer
253 views

Transform.forward having problems after rotation

I have this script, ...
3
votes
1answer
644 views

'Ball.rigidbody' hides inherited member 'Component.Rigidbody'

I have some understanding of c# and I am new to unity. I am currently making a 3D project which use the Rigidbody component on the ball object. When I use following code: ...
0
votes
1answer
1k views

How to animate objects in Unity 3D

Yesterday I played around with Unity 4.6 and I came up with a question about animation. I have an fps-survival project (most for educational purpose). I use the default build-in fps camera ...
1
vote
1answer
46 views

Texturing in blender

I am texturing a tree in bender using the sappling add-on, when i put the tree bark texture (which is saved as .jpg) the texture looks stretched and wierd, ive used "Use UV for mapping" on the curve ...
4
votes
1answer
483 views

How can I set 3d sound to my game in unity5?

I have been working on a racing game in unity5. Now I want to set 3d sound so that if the game objects are far away from and coming towards the camera then it sounds like began to attenuate and then ...
1
vote
0answers
415 views

Symbol not found Error in Unity3d - IOS Buid in Xcode

I new to IOS build , when i try to build following error showing I using Unity 5.2.1f1 and Xcode 7.0.1(7A1001) . Previous unity version was 5.0.1 , in that version , same error was found thats ...
0
votes
1answer
86 views

Duplicating and adding sprites at runtime in Unity

I am trying to create a 2D game in Unity in which objects keep falling from top and the player has to dodge them. Suppose I have created a sprite which serves as a single enemy that the player has to ...
0
votes
1answer
319 views

Unity>How to make a Box Collider( or any other collider) fits the gameObject perfectly?

I have downloaded and imported the Robot Kyle model in Unity 3D...and the problem with me is I want to add a Box or Capsule Collider to it...but I can't fit it perfectly... So what shall I do?
0
votes
2answers
168 views

Optimal way to find point D that lays at the perpendicular line between point A and line BC

I am trying to write a script in C# to find the position of point D in 2D space in a specific scenario. I know the (X,Y) position of point A, which never happens to be on the line that contains the ...
1
vote
1answer
535 views

Instantiated Prefab Facing Wrong Way

Here's a Youtube video of my problem in action ((in the video I am clicking in various directions, yet the fireball is always created facing down in some direction.)) I've been having a lot of ...
0
votes
1answer
2k views

OnMouseOver() alternative for iPhone (Unity3D/Unity2D)

I am currently developing a game that uses the OnMouseOver() function of a MonoBehaviour object. Is there a true alternative for iPhone? Would I be better of coding my own? Thanks in advance
4
votes
2answers
4k views

Unity Canvas blocking objects in Editor

I think I am missing something really basic here..., I'm creating a 2D game in unity, and the UI Canvas (with the setting "Screen Space - Overlay") is blocking exactly a quarter of my workspace. I can ...
1
vote
1answer
466 views

Unity3D - leaving and then returning to a scene

Effectively, I need to know how to run a mini game and then return to a scene. I know about DontDestroyOnLoad (this); but that works for game objects only and ...
3
votes
3answers
6k views

2D Sprites vs UI Image Scripts in Unity

I am doing a 2D casual puzzle where the user can drag and drop some pieces into a board. The pieces are 2 or 3 or 4 tiles. Each tile may have text over the sprite. Target platform: Mobiles and ...
2
votes
1answer
2k views

Unity 4 mecanim; 'Quaternion to Matrix conversion failed, input quaternion is invalid'

I'm trying to animate a stick figure in Unity, with placeholder animations. Character is built/animated in Blender, exported to FBX. When imported to Unity, everything appears correct in the editor. ...
0
votes
3answers
225 views

How do I size my map in blender so it will be the right size in unity?

I am working on a fps game but I cant get the size right of my map in blender, every time I export it to a .fbx file (unity won't work if it is a .blend file) it is a super small plane floor in unity ...
2
votes
1answer
3k views

Getting child collider when collision occurs in compound object in unity3d?

I have a compound object. The parent of the compound object hierarchy has a script that is listening to the OnTrigerXXX callbacks of the children. When this compound object collides with other objects ...
0
votes
3answers
472 views

Backround turning, follow the character

In my Unity2d-platformer, I need background to follow the character, so I just attach it. And when character turn left from right (or right-to-left), background turn too. How can I make my ...
0
votes
1answer
5k views

Unity 5.1 Asset bundle for windows

I am working on the asset bundle method, i know how to use the asset bundle for untiy 4.x series but i am trying to do this in unity5. I heard in unity 5 is more compatibility to do. I searched in ...
1
vote
0answers
3k views

Colliding without physics in Unity: is it possible to put OnTriggerEnter in the moving character?

My main question is: is it possible to put OnTriggerEnter in a script that goes attached to the moving character instead of to trigger area/object? Let me explain my exact need. I want to detect the ...
1
vote
0answers
2k views

Switch UNet From LocalHost to IP

I have set my game up so that I can run one instance as host and one instance as client and I see two people in the room. How do I get from that setup to another computer (as client) connecting to ...
1
vote
1answer
669 views

drag and drop a specific image to a specific panel and picture should not drop anywhere else except in that panel

hi guys i'm building a drag and drop in unity and I have panels and images so for example I want the bank image to drop in the panel that has bank text in it and that image shouldn't drop anywhere ...
5
votes
1answer
201 views

In Unity, how can I cause something to happen on a specific frame of an animation?

I have a GameObject "enemy" with an Animator and several states, like "idle", "walk", and "attack". I want to activate the "hitbox" when an animation "attack" starts. The problems is that the sword ...
1
vote
1answer
153 views

Transform.LookAt rotates the sprite and collision not triggering

I've applied the below script to a gun object to instantiate bullets to the direction of the mouse position. The bullet collision is not getting triggered since the bullet has been rotated. How to ...
2
votes
1answer
323 views

How will Unity games work on Chrome now that NPAPI is disabled?

As expected, this September Google disabled NPAPI in Chrome, which Unity Web Player relies on. As far as I know, Chrome now has its own API plugin API. Will the Web Player returning to Chrome without ...
1
vote
0answers
56 views

3D model exported from Maya behaving weirdly

I have some 3-4 3D character models which are claimed to be exported with the same configuration from Maya by the 3d designers. Now, some of the models(animations) is working fine in Humanoid settings ...
-2
votes
2answers
3k views

How can I make 2D games like shovel knight? [closed]

To make 2D games like shovel knight, do I need specific software? Would this be possible to achieve in Unity or would I have to use something else?
1
vote
0answers
115 views

Drag and Flick Objects to any position (Unity3D)

In unity, I have several boxes in one cluster. I want the user to be able to move any of these boxes to any position that they desire in the app, and have it stay there until they move it again. Also, ...
1
vote
1answer
787 views

Unity3D - generating a set of rooms (scenes) and saving them

I'm having a problem wrapping my head around scenario like this. Say I've got a scene called Room. Now, my game procedurally generates content of each room. Entering a new room to see new content, ...
2
votes
2answers
5k views

Why is Unity3D on OSX ignoring my XBox 360 controller?

I'm using a fork of the Tattie Bogle driver that has a signed kext. The System Settings panel shows all inputs correctly. One axis is configured in Unity3D 5 like this: Still, I don't see any input ...
3
votes
3answers
2k views

Unity C# - Raycasts, How to Ignore Triggers?

Let's say I have a Raycast, but I don't want it to collide with any triggers. I don't want to change the Project settings since that's a little inflexible. How can I have a Raycast ignore any ...
2
votes
1answer
3k views

Export Spriter animations to Unity

I want to use bone animations in my 2D game for Unity (5.0 beta). I am trying Spriter. Apparently, it has no official Unity support. There was some guy, back in 2014, who posted a plugin to convert ...
3
votes
1answer
78 views

Assigning Objects when duplicated in the editor?

I'm wondering if there is a way to have an Object when duplicated in the editor assign a GameObject variable to the newly duplicated version of itself. Is there an option in Unity or do I have to code ...

1
207 208
209
210 211
255