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
17 views

How can I make my MBP 2019 16" use my AMD Radeon Pro 5500M?

I am trying to test my project using dedicated graphics card, however, every time I run Unity3D starts using Intel UHD Graphics 630 instead of AMD Radeon Pro 5500M. These are my Unity General ...
0
votes
0answers
18 views
0
votes
1answer
54 views

Understanding Send Message

I'm trying to understand the Send Message Function but I'm a bit confused. Currently I have a game object character and I want it to send a message to the main body if one of its children hits ...
0
votes
1answer
33 views

How to reach IK Pass and weight by script?

I need to reach IK Pass box, and control the weight by time from 1 to 0. I tried GetLayerIndex and did not give me any of those options.
0
votes
1answer
19 views

How to translate prefab made of hierarchy of 3d objects

I am trying to translate a prefab of a puzzle piece made of a hierarchy of cubes but it's not working. I have tried translating the GameObject using its transform and the function Translate, it did ...
0
votes
0answers
20 views

Unable to drag and drop a script onto a prefab [duplicate]

When I drag the camera game object from the hierarchy to the inspector (locked), so that the script attached to it is applied to public script variable (onto a prefab), nothing happens. What can be ...
0
votes
0answers
24 views

Unity - Modify basic dissolve shader graph to dissolve from bottom up

I have this dissolve shader made in shader graph which works fine, however I would like it to dissolve from bottom up, how would this be done?
0
votes
1answer
30 views

Unity Script and game not syncing after player respawn

I have a health system for my player that looks like this: ...
1
vote
0answers
17 views

Circle Collider Vibrates on Edge Collider

I am making a game (kind of bricks) and using edge collider objects as world bounds collider. I am increasing count of balls on each iteration, after 5 balls, balls start to vibrate when they contact ...
0
votes
1answer
59 views

How to create a refill system over time

I am making an energy beam firing system from a drone. In my code, I have setup a system in which the player presses and holds onto the firing button, then a countdown bar begins to countdown, and ...
0
votes
0answers
15 views

Shader Only Renders In Left Eye of Head Mounted Displays

I followed a tutorial for creating a geometric grass shader, and the shader works fine. However, when using my Samsung Odyssey+ HMD to view the scene during play mode, the only eye that can see the ...
0
votes
0answers
26 views

How do I fix “Invalid character '' in input string at LitJson.Lexer.NextToken ()” when trying to use JSON from URL?

When trying to use a Json file served by a url I am getting the error JsonException: Invalid character '' in input string it happens when I use this method: <...
-1
votes
0answers
28 views

Unity Infinite Scroll View

I try to develop a game like Red ALert. I need a panel in the game which presents constructions such as Barracks, Power Plant etc. So ı want to learn thaht how ı can make an infinite scroll view to ...
0
votes
1answer
25 views

Unity Initializing class of a script not working

I have been trying to find a solution for the last couple of hours so please hear me out. At first I got a NullReferenceException, which I resolved(?) by initializing the class first (This is my ...
0
votes
0answers
30 views

Adding Score to score canvas after collision [duplicate]

Simply a player has to move through pipes falling down, once the player moves through the gap it should add a score and increase the scoring after each pipe the player goes through, pretty basic. I ...
0
votes
0answers
17 views

Coroutine not working, NullReferenceException Unity [duplicate]

When I run my game and collide with my object, I get a NullreferenceException error. I went through many posts I could find on Stackexchange and other websites, but nothing helped. When I did a Debug....
0
votes
3answers
84 views

Why does my recursive coroutine freeze Unity?

I want the bounds (left wall and right wall) to follow the player's y position, a couple of times. However when I use this code, Unity freezez as soon as it runs, and I have to manually shut it down. ...
1
vote
0answers
46 views

Imported FBX animations (exported from Blender) have different, messier keyframes than in .blend file?

I imported an a character to Unity 2019.2.8 that I made in Blender 8.0, which was exported from that program in .FBX format. The animations play back the same (perceptually, but the keyframes are very ...
0
votes
1answer
54 views

How can I keep track of which “rooms” characters and NPCs are in?

I have a Unity 2D project which has a player character and numerous NPCs all potentially moving (top-down) at the same time during play. The number of NPCs is not to exceed 100 (and will be, probably, ...
1
vote
1answer
31 views

Why do asymmetric specular highlights appear in a scene with only ambient lighting in Unity?

I have a scene in Unity (2019.3.0f3 Personal) using the High-Definition Render Pipeline. There are no lights in the scene, and Baked Global Illumination is disabled. The skybox is a ...
1
vote
1answer
49 views

Simulate wind in a powder game

I would like to create a game similar to powder game. I've got a 2d array that stores different types of powder such as sand, water, gas, and fire. I've managed to get these to all move around ...
2
votes
1answer
41 views

IL2CPP Vector.Dot inconsistency

I get inconsistent results when I run this code as standalone Windows on Mono and IL2CPP backends. ...
0
votes
0answers
17 views

Mouse detect object without Collider?

Is there any method for mouse or ray to detect object doesn't have collider ? If no, what also can I use ?
0
votes
1answer
35 views

Score does not increment by 1 in Unity

I have made a simple code where once the player moves through the collider that acts as a trigger then Unity adds a score. However, it increases by increments of 8 and I am not sure why. ...
1
vote
1answer
13 views

Moving Windows Mixed Reality main camera in Unity3D programatically

I'm trying to programmatically move the main camera i.e. player's point of view/origin in a Windows Mixed Reality but for some reason it's not working for me (using newest latest stable Unity 2018 and ...
-1
votes
1answer
119 views

Can I apply to a large game studio if I know Unity?

I'm a Unity Developer (intermediate) I want to know, can I apply to a company like EA or Ubisoft if I know Unity, and don't switch from Unity to Unreal or any other game engine?
0
votes
2answers
66 views

In a team of 2 people (one front end, one scripting), is there any way I could write scripts without the use of Unity all together?

So, I'm curious whether or not it would be possible to write scripts for a Unity game without using Unity itself, but using a third-party IDE, such as Visual Studio. My reason for this would be the ...
0
votes
0answers
12 views

Unity: Prevent game object from shrinking when using Scale With Screen Size

In my Unity app I am trying to draw a line between two points. For this I used a game object and set it's width to 1 so it looks like a line. I know the coordinates of the points between which I want ...
0
votes
0answers
28 views

How to make VR games-experiences without Unity or Unreal-Engine?

I have some experience with making videogames in c using libraries like OpenGL, FreeGlut, etc. I developed a game engine in c, specific for my game, so developing it with Unreal Engine or Unity is not ...
0
votes
0answers
18 views

How to add scene after build and deployed in Unity?

I want to be able to make new levels after build. I could use a map tool and script but I rather just add scene with all the resource packed with it. But what is the best practice forward?
-1
votes
1answer
11 views

How do i pass variable dice FROM diceNumber(),DiceScript TO diceno IN Box_Collider Script

Want to pass dice variable to 10 same script(Box_Collider). If i generate random no in Box_collider then ten random numbers are generated.
0
votes
1answer
23 views

Prefab spawning issue

I am having trouble spawning some obstacles from some prefabs. The aim is to make and endless runner (like normal) with obstacles to go through that spawn as the sprite goes up. But my prefabs don't ...
0
votes
0answers
30 views

Unity : Rotate object on touch looks weird

Touch and hold the screen then rotate object continue("Object is unity default cube") that's my operation, but when object is Rotate then it's look like weird. I ...
0
votes
0answers
15 views

Physics2D.OverlapCircleAll with layerMask not detecting anything

The problem is pretty straightforward and apparently unsolvable. When I use Physics2D.OverlapCircleAll without layer mask it works fine, if I try to use a layer mask it won't detect anything. I AM ...
1
vote
1answer
68 views

Does P2P Matchmaking can make an online game without any cost?

I’m planning on making an online game. I’ve used Unity (with Photon’s PUN2), but after some research, I had the idea of instead of using a server, with ccu limit and charge fees, i could make a P2P ...
0
votes
2answers
41 views

Unity: Accessing method from (script_2) without hardcoding it in (script_1)

I have some custom script for enemy's AI. Let's call it: "firstEnemyAI.cs" And I have "master" script called "Enemy.cs" attached to the GameObject. Is there any way to attach "firstEnemyAI.cs" ...
-1
votes
1answer
30 views

Change scale values by Lerp?

How to change the scale values of object by using Lerp. from 0 to 0.01722f and reveals later ? ...
0
votes
1answer
16 views

Unity's Android Notification system works on my Xiaomi, but on a Huawei every notification has an “Unknown” status?

When my app starts I check whether there is a notification or not if there isn't I create one via SendNotification(...) if there is, I check their status: ...
0
votes
0answers
12 views

How would I go about exporting collision data of specific objects in unity, to use as geodata in my MMORPG?

So I have been working on the game for quite some time and always left this step as something to do later. How would I go about exporting the vertices/mesh data of specific objects? I want to use ...
0
votes
0answers
27 views

Why the state of the duration is all the time 7 even if updating the state inside the while in the ienumerator?

I want to get the current coroutine state. ...
0
votes
2answers
42 views

Ensuring dash toward mouse position is always a consistent distance

I'm making a 2D game where the player character should dash toward the mouse position when the player clicks, but the dash is currently not a consistent distance each time. Let's say you put the ...
0
votes
1answer
27 views

How to use FloodFill for 2d images [closed]

Hello I want to use floodfill algorithm for creating a bucket tool in my game. I find these 2 codes but I have no idea how to use them if you guys know any better code or way to do it please tell me. ...
0
votes
0answers
21 views

How to get font line height for a given font size, only known at run time?

I use the following methods to rasterize font characters into a texture and then render them as a mesh : RequestCharactersInTexture(characters, size) GetCharacterInfo(ch, out info, size) It works ...
0
votes
1answer
30 views

Bubble Text appears issue?

I'm trying to make a dialogue between characters using bubbles witth text. But the text appears not clear to player. The Cam is far from the canvas 13.5f. What to do fix it ?
0
votes
0answers
22 views

How do I calculate orientation of GameObject in a custom coordinate system?

I am trying to build a custom coordinate system. To be more specific, the user chooses three points on screen to define the coordinate system. The first one is the origin, the second one is used for ...
0
votes
0answers
25 views

Is it normal for the baking timer in Unity to increase?

I'm having an unusual reaction from trying to bake my scene for Occlusion Culling (the scene was starting to lag and I thought this would optimize it) and I wanted to ask for advice. What's happening:...
0
votes
0answers
16 views

Low resolution RenderTexture with gradients

I have a small RenderTexture that stretched on large object, so texels is near 0.3 of unit. Source for this texture has much more resolution and with gradients. If source little bit changes its ...
0
votes
0answers
40 views

What does 'unity curl error 35: Handshake failed. UnityTIs error code: 7' mean?

I'm using Occlusion Culling to optimize one of my game's scenes, as I've noticed it has started to lag quite a bit. I have done this only once before with another scene and it didn't take too long, ...
0
votes
1answer
28 views

How to directly change a vector3

I'm new to unity, and written code in general, but I haven't been able to change the value of a vector3. public Vector3 VARIABLE = (5f, 5f, 5f)
0
votes
1answer
21 views

Unity Tilemaps not Rendering as I move camera

As I move the main camera in my Unity game towards the left or right, the camera just stops rendering any of the tilemaps in the scene. Here, the camera is at x = 25.7, and the preview isn't showing ...