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
1answer
8 views

Unity How to detect if a 2D object overlaps any other 2D objects

I am programmatically placing 4 large dots on my 2D scene which already has some objects on it. If the new dot overlaps an existing object I want to destroy the existing object. All the objects have ...
0
votes
1answer
14 views

Unity 3D - Why does my button need to be clicked twice to work?

My goal is to go back and forth between a series of animations by clicking left and right arrow UI buttons. I wrote this C# script and the "next" button (which executes ...
1
vote
1answer
17 views

Why real time lightning fails to show shadows on terrain in Unity?

I'm using the TerrainTools unity package to create a simple 500x500 terrain, and placing a simple character that moves around, however, by default, the lightning is at real time mode, and the shadows ...
-1
votes
1answer
28 views

Legal to make and sell a game engine made with Unity3D?

does anyone know if it's legally sound to create a game engine within unity, build it as a standalone and sell it as a product? The engine would allow users to compile their own games through it. It ...
0
votes
0answers
16 views

Gauss-Krüger system to Unity Coordinate Conversion

In my recent project, I am getting an object file via a request to REST API and found that the OBJs (object file) are in Gauss-Kruger System. I want to know that how exactly I place the model as I ...
0
votes
1answer
26 views

Display musical symbol (unicode) in Text component not working?

I downloaded and specified to use a unicode font that supports musical symbols (Musica), but when I set the text value of the Text component to "𝄞" nothing is displayed? I tried using the ...
0
votes
0answers
15 views

Persisting Player Prefs On Build in Android

Can I ask for help/guide where I can build 2d game on android device includes the players prefs that I defined already, for example I have an "int" PlayerPrefs (PlayerPrefs.Getint ("...
0
votes
0answers
8 views

How To Resolve Addressables Remote Bundles On Backend Server?

There are lots of cloud services on which you can host your addressable bundles, but I need to resolve the bundles on my own backend service (like ASP, ...
1
vote
0answers
32 views

How can I play a YouTube video in Unity if given the YouTube URL link?

How can I play a YouTube video in Unity if given the YouTube URL link? I am using 2019.4.13 Is there a way to open webpages?
0
votes
0answers
17 views

Why do Dynamic Bones disconnect natural flow if they have ANY child gameobjects?

I've been having an issue for months now where if I have a dynamic bone chain that splits off in any way (ie. any of the chain's bones have child gameobjects), then the flow of the dynamic bone chain ...
0
votes
1answer
34 views

Why the scene name is never change when loading another scene?

I have two scenes. Main Menu and Game. When running the game it's starting with the Main Menu scene loaded. Then when making a new game the Main Menu scene is unloaded and the Game scene is loaded but ...
0
votes
0answers
15 views

Should I use Unity for a quick game to make and sell to then move on to my own engine? [closed]

I am currently a hobbyist game dev, and have a certain fondness of writing my own game engines. I want to make a first public game relatively quickly and get it into a state where I would then sell it....
0
votes
0answers
18 views

Mirror Networking; How to Pass/Sync c# actions?

Since you can not pass actions as parameters to commands and rpc calls, how would you sync actions ? My main goal is to find an easy and generic way for objects to easily do actions from their local ...
0
votes
0answers
12 views

How can I load multiple scenes in background?

I want to queue the loading of multiple scenes in background and show all of them at the same time when all complete their loading. The only idea I have by reading the docs is to root all objects in ...
0
votes
2answers
22 views

How to Make Saving System Serializable

Hello I’ve been working on a save/load system for my RPG inventory, and I was wondering whether there was a way to make the script use Serialization instead of PlayerPrefs, because I want the player ...
0
votes
0answers
18 views

How can I integrate between the audio volumes settings in the main menu scene and the audio in the game scene?

I have two scenes only : Main Menu and Game In the Game scene I keep all the game data and gameplay stuff. In the Main Menu scene I have two sliders for volumes. One for the music and one for the sfx ...
0
votes
1answer
31 views

Is there any different between these 2 command? [closed]

I came across this question on stackoverflow https://stackoverflow.com/questions/17147553/int-num-new-int-what-happens-when-this-line-executes . Wonder if there is any difference for sprite and ...
0
votes
1answer
31 views

How to Make Saving System More Secure

I've been working on an saving system for my 2D RPG game, and I recently encountered an issue: my saving system uses PlayerPrefs, which I heard is supposed to be used for things such as settings. I've ...
0
votes
0answers
46 views

How to Implement One-Way Slopes?

I am working on a 2D platformer in Unity and am doing my own collision detection. I was previously using the method described in Sebastian Lague's popular YouTube tutorial, where you break your ...
0
votes
1answer
25 views

Rotate around moving object

I'm using the function Transform.RotateAround in order to make my player rotate around objects in my game, it's the main feature. The thing is, when I'm making my levels harder and make the objects (...
1
vote
1answer
20 views

Is it possible to render / project / flatten a 3d model onto a 2d plane in Unity?

If I have a 3d Object (character) could I use a renderer / shader / camera mode to essentially render the 3d object as a 2d sprite? Not looking for a full tutorial on this one, I realize its a large ...
0
votes
1answer
20 views

Save Script Doesn't Save Item Variables

I've been working on an RPG videogame, and I have been trying to implement a Save button into my game, which is supposed to save the player's itemAmount variable, which is in another script, called ...
0
votes
0answers
10 views

How does DrawProceduralIndirect use MeshTopology.Triangles?

I'm working on a voxel terrain generation system. Currently I'm running into issues using DrawProceduralIndirect. In the call, you are able to choose how the GPU should render the data you are passing....
0
votes
0answers
15 views

“Failed to load alembic” Unity3D after build [closed]

I'm facing difficulties with Alembic after building for x86_x64 windows. Alembic files aren't being loaded or read and I am getting this error in the log file. I am using unity 2019.4.16f1 and tried ...
0
votes
1answer
23 views

Why the enemy is flipping constantly when it collides with an obstacle?

I'm making a 2D platformer with Unity. I have an enemy patrol that shoots bullet. The enemy is working fine until it reaches to a point that should be turn around. (when collides with an obstacle or ...
0
votes
1answer
37 views

How to create a Decisecond(0.1second) function that can use in the code?

I create a circular object and pivot the minute and second pointer on the middle of the object as below. Below is the code I use. ...
0
votes
1answer
18 views

How to get the correct Input direction based on the camera angle to use in a rootmotion based third person controller

I move my character based on the rootmotion of their animation using a blend tree that uses 2D Freeform Cartesian input (Vertical, Horizontal) if Vertical = 1, the character moves forward based on the ...
1
vote
2answers
37 views

Unity 3D mirror, sync player spawn name

I am using Mirror for doing my little multi-player car racing project which I want to rename the game object automatically after the NetworkManager auto create the game object. Here is my ...
0
votes
1answer
33 views

2D isometric game with 3D prefabs

Is it possible to have a 2D isometric game in Unity, but also have 3D prefabs in the scene? Will that work or should I make the game in 3D with an isometric camera?
0
votes
0answers
10 views

How to save Unity assests to another drive?

My C:\ volume has almost no space left. Therefore I want to transfer all my assets to the volume E:/. And save my new assets automatically on the E:/ volume. I have searched very long in unity for ...
0
votes
1answer
23 views

How to Make UI Open and Close on Keypress

I've been working on a 2D RPG and have been trying to make a script that will open or close the public UI element that is selected in properties. I don't receive any errors, but I do receive a warning ...
0
votes
1answer
14 views

Unity: Alpha and color issues with opaque projector/decal shader

I have been attempting to make a simple "overwrite" version of Unity's projector shader. I can either respect the color, or respect the transparency, but not both. I have simplified the ...
0
votes
0answers
42 views

Running into memory issues during procedural generation

I'm procedurally generating a map of hex cells and creating a variety of paths along this grid. As I'm creating these paths every about 10 runs of the game, Unity is running out of memory while ...
0
votes
1answer
64 views

Why the update function only call once

I asked about this question How to efficiently implement a 7-segment display? in previous post. Now I just add an update function to the last part of the code to display the time(I don't bother the ...
0
votes
2answers
32 views

How do I stop my skeleton from playing the walking animation?

I'm trying to get a Skeleton Model to go from its walking animation to its idle animation using a bool that checks for input. Currently, in-game, the skeleton doesn'...
1
vote
0answers
17 views

How to create fallout intensity on a generated mesh in Unity?

So I was able to generate a circle mesh in Unity to basically see the other characters when they are inside of it, and hide the characters when they are outside of it, and partially hide and show the ...
0
votes
1answer
35 views

What does 'vertex splitting' mean?

In the documentation of MeshUtility.SetPerTriangleUV2 it is said the following: Will insert per-triangle uv2 in mesh and handle vertex splitting etc. What do they mean by 'vertex splitting' ?
1
vote
1answer
31 views

Player Camera Shaking when Running Into Wall in Unity

I've been working on a 2D RPG game in Unity, and for some reason, whenever my character runs into a wall, the camera begins to shake violently. I have a RigidBody2D and a BoxCollider2D connected to ...
1
vote
1answer
35 views

How to hide player when in Shadow using Unity 2D Light System?

I have been looking for this for a couple of days now and cant find an answer; how can I hide a player when they are in the shadow when am using Unity 2D Light System? I know I can choose not to cast ...
0
votes
1answer
35 views

.isGrounded is not working reliably

New to Unity and C#, though, I got the code from the official doc page for Character Controller and thought that should work by default. When pressing the Jump button here it doesn't always work. When ...
0
votes
2answers
42 views

Strategy for temporarily blocking user input

What are good approaches for disabling user input during certain moments in a game? In my case, I have a grid-based tactics game (kind of like Fire Emblem) where I periodically want to toggle the user'...
-1
votes
0answers
35 views

error CS1503: Argument 1: cannot convert from 'damage1' to 'float' [closed]

Hello Guys, I am Issa. I was following the (Shooting with Raycasts) - Unity Tutorial By Brackeys. At 8:06 time he said to tap the crate 5 times. But I had this error : (Assets\Scripts\Gun.cs(33,30): ...
0
votes
1answer
38 views

How to continue Lego microgame tutorial?

I was passing Lego microgame tutorial. I closed it and quit Unity. Now, how can I continue it from the same place? If I opening it's project, I am getting just silent ...
0
votes
2answers
86 views

How to efficiently implement a 7-segment display?

I want to construct a 7 segment display (as shown below). When you input a number, the script will read the input number and light up the respective segment (change ...
0
votes
1answer
31 views

Android resource linking failed

I had the "Android resource linking failed" error when trying to build gradle. I didn't have this error until I added the Google mediation SDKs (it worked with GoogleMobileAds SDK without ...
0
votes
1answer
50 views

How can I destroy particles on collision with specific a GameObject?

I wrote a script to manage my Particle System emission. The starting lifespan is set to infinite so that the particle never dies until it reaches a specific collider. I didn't find any method to ...
0
votes
1answer
36 views

How to Save Same Variable with Different Values in Multiple GameObjects? [duplicate]

I’ve been working on a game and have successfully created an RPG Inventory System. In my system, I have a script that uses public floats and ints, which are connected to multiple slots that show the ...
1
vote
1answer
12 views

TextField Add in Editor does not display when put under if statement

I've been trying to make a custom editor window in Unity and I needed to make an "add TextField" button. When I add a TextField directly (without ...
0
votes
1answer
32 views

How can I get/find all the UI texts and TextMesh Pro in the hierarchy?

When pausing/resuming the game, I want to disable/enable all UI texts. The following code works for finding UI texts, but I also want it to find TextMesh Pro text. How can I do this? ...
-4
votes
1answer
49 views

Which game engine is better to start development? [closed]

I am Issa. I want to start game-dev, but I don't know which engine should I choose to start!!! Please Help Me...

1
2 3 4 5
269