Unity Game Engine answers
-
0answers
Why can't I drag text into the inspector?There is a text in the canvas - the number of cartridges in the clip. In the script, it is used to visualize the loss of cartridges when firing (The script hangs on the player's prefab). I try to drag an object with text into the script in the inspector, but nothing comes out ... Is this an ...Unity Game Engine Carter Russo, Aug 24, 2019
-
0answers
How to create a dynamic list based on changing the aspect of the screen?Hello. Build Program : Unity 2018.4.26f1 Build Direction : Portrait Resolutions on Mobile Task : Make a list with texts and pictures that would dynamically change its size depending on the size of the ASPECT of the phone - since it is oriented to different devices. My approach : 1) ...Unity Game Engine Sebastien Zhang, Nov 11, 2019
-
0answers
Unreal Engine or Unity for 10,000 Online?The essence of the question is which game engine to choose for an MMO project where the fixed amount of online is 10,000. During my work, I have never come across such a question and if I ask my colleagues, it will be very suspicious. So what to choose and where will there be fewer pitfalls and ...Unity Game Engine Benjamin Stanton, Sep 28, 2020
-
0answers
How to make AddForce move to where the object is turned?Let's say a triangle. Its sharp angle shows where they are going. Let's say he turned to the east (that is, the tip points to the east), then he should move there, to the east, but this is how it works for me. The triangle turned to the east, but for some reason it does not move there, but ...Unity Game Engine Anonymous, Sep 30, 2020
-
0answers
Why doesn't the player move to another object?The object does not move to another, but the code is correct in my opinion; using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.EventSystems; using UnityEngine.UI; public class PLAYER1: MonoBehaviour { public GameObject goal1; public ...Unity Game Engine Eliot Harmon, Apr 23, 2020
-
0answers
How to change the Appearance of an object when a bullet hits it?I have a box and it can say 5 forms, the box is normal and the subsequent ones are more and more destroyed, that is, when I shot it, it changes to the next form (well, that is, to change its appearance) and so on How can I do it? The idea is to make the Xn of the box and initially put 5 in it, ...Unity Game Engine Anonymous, Dec 16, 2020
-
0answers
How to prevent the game from being displayed over the UNITY lock screen | C #?I am creating a HyperCasual in Unity. During tests on the phone, during blocking, the game remains in focus, i.e. on top of everything. How do you get rid of this focus to work properly? The test is carried out on Android 10. I tried to google the problem, but most likely I am not correctly ...Unity Game Engine Anonymous, Apr 13, 2020
-
0answers
Why do i cant create room on android build using PUN 2?I have trouble due to room creating by PUN 2 because it works on pc build but doesnt work on android build. I click on create room btn but it doesnt create, so i dont know where is my fault. Pls help me! Thanks for your attention.Unity Game Engine Nathan Holder, Oct 28, 2019
-
0answers
How to make an event every second (Unity)?How to make an event every second, please help!Unity Game Engine Jacob Hutchinson, Jan 1, 2019
-
0answers
Distorted 3D models on import?I made a 3d model of the ship in SpritePile and exported it to .obj, then I threw it into Unity and here's the result. It should be like this:Unity Game Engine Anonymous, Jan 13, 2019
-
0answers
Playmaker what is it used for?What does it simplify and so on? I see that even the pros use it.Unity Game Engine Piper Duarte, Aug 6, 2019
-
0answers
Can't transfer an array to another Unity class, but what's wrong?There is a class that inherits from the parent, the parent has an array that has get; set; However, in the child class it is filled and in the parent it remains empty. I tried the same with creating a structure. The same. Parent class: internal ComputerStructForSend[] Computers = new ...Unity Game Engine Eva White, Jul 7, 2020
-
0answers
(Unity 3D, character movement) Why is running diagonally slower than running right / left or straight / backward?Hello. I made the character move in 3d, but it turns out that when the character moves diagonally, and not in a specific direction, his speed becomes slower. I didn’t find a similar problem on the Internet, I don’t understand what is wrong. I make for mobile phones, so I use Input System for ...Unity Game Engine Elisabeth Romero, Aug 30, 2020
-
0answers
How do I check if a character is touching the ground in Unity 2D?I am making a game for android on Unity 2D. I have a character jump code: public void Jump(bool isJump) { isJump = groundCheck; if (groundCheck) { rb2d.velocity = new Vector2(rb2d.velocity.x, jumpPower); } } I tried to check if the character ...Unity Game Engine Anastasia Armstrong, Apr 5, 2020
-
0answers
How to enable post-processing in unity?In general, there was a need to create a shader for unity, I found a post about this on Habré, downloaded a ready-made scene with a shader and it turns out that post-processing effects do not work for me, that is, I can make a shader, but it will not have such lighting as shown in post, tried ...Unity Game Engine Anonymous, Dec 12, 2019
-
0answers
How to make one jump in a unit?Made a script for the main character, but if you press the space bar all the time, then it flies out of the map, how to make a single jump? Here is the script. using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.SceneManagement; public class ...Unity Game Engine Anonymous, Jun 13, 2019
-
0answers
The problem is in the unit, how to fix it?Wrote the code, gives an error Assets / pers / camera.cs (24,3): error CS0201: Only assignment, call, increment, decrement, await, and new object expressions can be used as a statement. How to fix it? using System.Collections;using System.Collections.Generic;using UnityEngine;public class ...Unity Game Engine Anonymous, Jun 14, 2019
-
0answers
How to implement the code of smooth infinite motion of a 2D object to the right when starting the scene?I create a 2D runner, I have a question. how to implement an infinite, smooth movement of a 2D object? Note: At the beginning of the scene, he jumps forward and continues his movement, without any other intervention.Unity Game Engine Hannah Mays, Oct 17, 2020
-
0answers
How do I solve my Avatar Mask issue in Unity?When using the Avatar mask (to control the top and bottom of the character separately): Upper Avatar - (name: UpAvatarMask): Lower Avatar - (name: DownAvatarMask): If I put two Avatars on 2 layers in Animator: 1) 2) Then my character shrinks: And if Avatar is thrown only one layer. ...Unity Game Engine Anonymous, Oct 18, 2019
-
0answers
How to convert float to Vector3?public Vector3 offset;if(IsMaySit == true) offset = (-7.34f, 1.34f, -23.32f); writes an error: Cannot implicitly convert type "(float, float, float)" to "UnityEngine.Vector3"Unity Game Engine Anonymous, Aug 14, 2019