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
0answers
6 views
-1
votes
1answer
28 views

Unable to download assets from Unity Asset Store

I have a problem with the Asset Store on openSUSE Tumbleweed, running Unity 2019.1.0f2. I can connect, log in, view the download button, and click it. Then, a "Downloading" message appearsb but ...
0
votes
1answer
9 views

Updating connected states in a “build the pipeline” puzzle game

I'm trying to make the pulse system in a "build the pipeline" puzzle game to check if tiles are connected to the starting tile. There is a weird bug that prevents tiles on the right and tiles on the ...
0
votes
1answer
16 views

Clockwise / counter-clockwise convention for Vector2.Rotate(float angle)

I am making a 2D game in Unity, and from what I understand, their convention is that an angle of 0 is up and increasing the angle rotates the object counter-clockwise. Sidenote: I made this ...
1
vote
0answers
12 views

Unity LWRP alternatives for camera stacking

I am working on upgrading a project in unity from a 2018 version to the latest 2019. One of the mechanics of the game is an AR (augmented reality) system. Some of the UI elements appear in the 3D ...
0
votes
1answer
22 views

Tiles in the Tilemap dont overlap properly

This is my first try making a "proper" game in Unity. I'm using the latest version (2019.2.2 at the time of writing) and I'm writing with C#. This is a project I'm doing for my studies, together with ...
0
votes
0answers
9 views

Professional way to use socket server in Unity? [on hold]

I'm trying to connect my Unity client to my own backend which should have a socket server. I had tried SignalR but client-side ...
0
votes
0answers
12 views

How can I publish my game (*.aab file) on google play?

I select arm64 (64 bit) and x86 and amrv7 and select build app bundle in player setting so but when I want publish so I have an error like : Error This release is not compliant with the Google Play ...
0
votes
1answer
14 views

Prevent VS Code opening the Unity scripts twice

Is it possible to prevent VS Code opening the Unity scripts twice? E.g. I opened Unity project, double clicked a script and got my project (Assets folder) opened in VS Code, now I go to Unity make a ...
0
votes
0answers
9 views

Google Play In-App Purchase Troubleshooting

I used the code below to handle in-app purchasing in my Unity 2019.1.9 game on Google Play. But it did not work. What is my problem, and how can I fix it? ...
1
vote
1answer
24 views

Is there a way to change displays in unity

I was wondering if I could change displays in Unity by hitting a key. For example, I want to look down on the battle, so I hit 1. Then I want to see it from the side. I hit 2, etc. Is that ...
0
votes
1answer
31 views

How to temporarily increase the speed of a character in a Unity game

As the title would suggest, I want to give a character a speed boost for x amount of seconds, while increasing their Gameobject's mass. During this little speed boost, I also want to add a script to ...
0
votes
1answer
25 views

How to add a bolt into my unity project

In my game, one of the character you pick as a special ability called the dash. It allows the player to quickly move forward. Included below is the code. It just throws up a bunch of errors. This is a ...
0
votes
1answer
13 views

Clamp GameObject Into Isometric Camera Viewport

I'm using the next code to move an objecto into an isometric projection (30/45) ...
0
votes
1answer
9 views

How do I make an image appear based on the current state I'm in?

I am following a tutorial called Complete C# Unity Developer 2D: Learn to Code Making Games. In one section we create a text-based game, where we display a canvas with some UI elements to the user. ...
0
votes
1answer
21 views

Character Controller pulling Table in Unity Engine

I have setup a scene with one GameObject that has CharacterController component (Player) and another one Cube that represents Table with RigidBody and BoxCollider components. Now, when I get close to ...
0
votes
1answer
17 views

How do you turn off all scene lighting in the game view like you would with the scene view button?

In the scene view, there's a control bar with a 'lighting' button that lets you toggle scene view lighting. This turns off all shadows and all light sources, i.e. makes it so that all objects are seen ...
0
votes
0answers
12 views

Stop the player to prevent it from being thrown away after collision

I'm trying to write a script where when the player (kinematic) comes up against an enemy he stops, jumps and gets dynamic again. The problem is that when it returns dynamic it is thrown away and does ...
0
votes
2answers
22 views

Using ECS in a custom Unity package

I have built a custom package for Unity called world-renderer. This is the folder structure. Inside "Runtime" is all my source code. To use it inside a Unity ...
0
votes
1answer
22 views

Why does changing Texture of Particle System using Material Property Block changes texture, but Particle System is still emitting old texture?

I try the code in Start, checking in Editor shows new texture, but Particle System still emits old texture. The script works for SpriteRenderer, but not ParticleSystem. I tried to Play/Stop emission - ...
0
votes
1answer
36 views

How to increase the thickness (Size) of a plane in Unity

I am making a small game where you have to roll around and not fall of a platform. I am using a plane to simulate the ground, but it is really thin. Is there a way to make it thicker by increasing a ...
0
votes
1answer
36 views

How to prevent a cube from falling through a plane in Unity

I am trying to prevent a player cube from falling through the plane (Battleground) in Unity, but after adding Mesh collider to both the cube and plane, as well as adding a rigidbody, nothing seems to ...
0
votes
1answer
15 views

PlayClipAtPoint() playing multiple times on enemy death

I am having problems with PLayClipAtPoint(). I want to play a given sound as soon as a gameObject is destroyed. Here is my code (the concerned parts): ...
0
votes
1answer
8 views

Auto key bones with controller helpers

I have skinned and rigged a human character with IK / FK and helper objects to control the position of the IK goals and the rotation of the bones. For example, the characters' left arm IK goal is ...
0
votes
1answer
24 views

Networking - assigning IDs to entities

Maybe I'm asking dumb question, but this problems bothers me... So I have my networked game in Unity (client), and server written in C# (without Unity). I Use ENet library for networking. Most of ...
0
votes
0answers
26 views

How to add Facebook login to a Unity game without Gameroom?

I'm trying to implement Facebook login with the Facebook SDK for Unity. The documentation makes it sound pretty straightforward: call FB.Init and then call FB.LogInWithReadPermissions and use a ...
1
vote
1answer
41 views

Unity ads displaying only unity products

i just implemented unity ads on my project and now its only showing a single unity product each times. Can anyone suggest why? Thanks.. Here is some screenshot of the ad 1: (https://i.stack.imgur....
-1
votes
1answer
52 views

Could I run two functions inside OnTriggerEnter?

My weapon fire a gameobject "clone bullet" with a script attached on it. There is a part from the script doesn't work. That part is when this "clone bullet" hit object with "enemy" tag, check if this ...
0
votes
0answers
55 views

Help with moving a character in Unity [on hold]

I am attempting to move my cube character with the arrow keys, however, all of the scripts I used would throw up an error. I have tried multiple file movement structures, and I have tried single files....
1
vote
1answer
34 views

How can I control ads frequency?

This question was already asked a while ago, and I wanted to check the present situation: Can I control ads frequency from the dashboard? (e.g. frequency capping in Admob) Can I control ads frequency ...
0
votes
0answers
30 views

Lag in updating UI

I have code that changes the color of an image when a touch screen on Windows 10 is touched. When the screen is touched I also have an external function that I call to toggle a GPIO pin on a board. My ...
0
votes
2answers
48 views

Dragging a Rigidbody2D without passing through obstacles

I have this body of code written for an object that needs to be an obstacle and another object that is draggable. I have colliders on both and a kinematic rigidbody on the draggable object, but the ...
0
votes
0answers
37 views

Unity: Make a moving rigidbody stop exactly at a given distance

I have an object that only moves along Z-axis, its rigidbody has a mass of 1 and a drag of 0.2. That object accelerates till MaxVelocity and then moves at that constant velocity in the Z-axis. When ...
0
votes
1answer
51 views

How to move player along navmesh link's curve?

NavMesh Link creates a navigable link between two locations that use NavMeshes. This link can be from point to point or it can span a gap, in which case the Agent uses the nearest location along ...
0
votes
2answers
32 views

Unity Component Hierarchy

I'm currently working on a 3D RPG game and I'm adding Interactions with objects. I have a lot of objects to interact with and I've placed them in an folder/empty object "Interactables". Now, I want ...
0
votes
0answers
13 views

Unity light baking out of memory

I have a problem where whenever I try to bake the light in my scene I get this error after a while: ...
0
votes
0answers
44 views

GetPixel() doesn't return properly the values

So I'm trying to use GetPixel() function to get which colors is the texture as a value of x and y. So far it works well but it only return 1 color, being unable to get the rest of the colors of the ...
0
votes
2answers
21 views

Accessing strings based on score

I have strings named like this: list_1 = {"a", "b", "c"}; list_2 = {"v", "t", "d"}; list_3 = {"e", "a", "b"}; .. list_100 = {"g", "q", "z"}; and I have a ...
0
votes
0answers
19 views

Keep my 3d player from jumping if he's not on the Ground [duplicate]

I'm making a 3d game, and I have only made games in 2D before, but i have used blender before too. My player can now walk and jump, but he is not limited to only jumping of the ground. In 2D, you ...
1
vote
1answer
34 views

Could use some help figuring out bouncy physics material in this PhotonEngine game

So I'm trying to prototype a primitive 1v1 fighting game where the goal is to push the opponent off of the platform rather than actually fight. This is working great in a local multiplayer setup using ...
0
votes
1answer
28 views

How to detect a pinch in Unity?

How do I detect a pinch motion on Unity for an android or Iphone? I need to also know whether the player pinches a certain character or not. How do i do that?
0
votes
0answers
21 views

NullReferenceException: Object Reference Not Set to an Instance of an Object (How is that so and I should I solve it?) [duplicate]

I am stuck several days because of this problem, which I am almost on the verge of giving up. (Using Unity Engine 2019.3a by the way). The TextButtonName.text can't read what TextButton is throwing to ...
6
votes
1answer
445 views

Unity: transform.LookAt(target) not “looking at” target?

I have been troubleshooting a prefab for several hours and am out of ideas. It concerns a method that I thought I was comfortable with, transform.LookAt(target). I have this prefab: As you can see, ...
0
votes
0answers
40 views

Stages of creating a computer 3D game on Unity [closed]

I am writing a computer game, but I do not know what is missing, because I collect information in Youtube on unfinished courses by the authors. What stages of development I learned from the videos: ...
0
votes
0answers
42 views

How To Display a friend list Using Play fab?

I m making a multiplayer game using playfab. One player send a friend request Second player then not display a player name?? I want the access(display) a player name??? see the referance, Code: <...
0
votes
1answer
27 views

Moving an object to random points Unity3d c#

So here is the problem I want to change the position of gameObject to specific points that I declared with empty objects randomly but the problem is the moment the object reaches one of the points it ...
0
votes
1answer
24 views

How do I keep UI texts in their relative positions at all screen resolutions?

I need to position several UI texts on the screen. I do this using a Canvas with Screen Space Overlay. Also, these UI texts need to stay at their relative positions at different screen sizes. Here ...
0
votes
1answer
30 views

Unity 2019 depth-only camera now overwrites everything

We have a pretty traditional camera stacking set up: UI camera on top of a everything-else camera. The UI camera is set to only clear depth, and only draws the UI layer. The everything-else camera ...
-1
votes
1answer
18 views

Wrong return type on IEnumerator method (AsyncOperation.progress)

I am basically just using this script from the documentation as it's the exact same thing that I want to do. https://docs.unity3d.com/ScriptReference/AsyncOperation-progress.html Just replacing it ...
0
votes
0answers
16 views

How to achieve communication among objects/systems in an effective way? [closed]

I have been playing with unity for some time and as a software developer I like systems to be as decoupled as possible. I would like to know what kind of architecture you use to accomplish this. ...