Skip to main content
The 2024 Developer Survey results are live! See the results

All Questions

Tagged with
0 votes
0 answers
6 views

Connecting Client and Host grave issues in unity multiplayer game

Where do I even begin with this one. I'm currently making a multiplayer game on unity, using Netcode for Gameobjects. I've made sure to check the online functionality after each addition to ensure it ...
Bobcat's user avatar
  • 3
0 votes
0 answers
7 views

Unity - How detect dynamic island in Apple phones?

How detect dynamic island in Apple phones? Or do automatic offset, setup in Unity or Xcode? I found a similar problem here but it's probably directly for coding in Xcode. In Xcode, I can only manage ...
Lukáš Hotárek's user avatar
0 votes
1 answer
32 views

Somehow counter in c# unity script adds 2 instead of 1

I have this piece of code which detects when the wall passes the player, and increases the counter. For some reason, the chunk sometimes stays in the same position twice, adding to the counter twice. ...
Besporyadok's user avatar
0 votes
1 answer
33 views

Unity. Inspector references to objects disappear after restarting the scene

The bug occurs in two cases: When I restart the scene When I go to another scene and then come back The game works correctly only after the first start of the scene. The essence of the bug is that ...
GedJack's user avatar
  • 19
0 votes
1 answer
46 views

How do I make my function correctly use a callback after async functions are completed?

I have this function that loads a number of assets via async and I want to call the onComplete action when all the assets have been loaded but currently given the nature of async I am not sure how to ...
WDUK's user avatar
  • 1,472
1 vote
0 answers
23 views

Unity - Problems creating full screen image that maintains aspect ratio using Canvas

I am trying to create a background image that covers the entire screen of my phone, while at the same time keeps its original aspect ratio. This means that if the image and screen do not have the same ...
AstrOne's user avatar
  • 3,709
0 votes
0 answers
20 views

pixel position of hud element and mouse in unity

I'm trying to detect if a mouse if over a hud element with C# in unity. I have hud element taking up about 1/5th of the right side of the screen. I basically want to do if mouse.x < hud_element.x ...
learn_css's user avatar
0 votes
0 answers
17 views

Animation Parameters in Unity?

Does anyone know how to write a code that can change the animator parameters? I tried making something but the variables i made were separate from the ones in the animator window so obviously it didn'...
Melody Elbel's user avatar
0 votes
0 answers
40 views

How to drag card up entirely from the bottom of the card instead of just the left point?

I'm making a card game in 2D where the player can "peek" at their cards. I am currently using the Book - Page Curl tool and have rotated it -90 degrees on the Z-Axis. It's almost the result ...
marzupial's user avatar
-1 votes
0 answers
28 views

Unity C# using "new Color(0,0,0,1) " doesnt do anything in inspector

So basically, as stated in the title. I have a variable set to [SerializeField] Color textColor = new Color(0,0,0,1); and it does absolutely nothing in the inspector. I could set that color to ...
Mike The Elf's user avatar
0 votes
1 answer
42 views

How would I reference a variable only in an inherited class?

So for a game I'm developing I'm using a inheritance based finite state system for enemy and boss AI. However I'm coming across a few issues with its implementation. The base state class is inherited ...
Glass Shard Games's user avatar
1 vote
0 answers
28 views

why the same unity sorting layer settings showing different result for identical prefab objects?

I am making a 2D card game. Each card is a prefab object, with the rectangular card background in the default layer and the text as a canvas child in the UI layer. I ran into a problem with the text ...
algo's user avatar
  • 55
0 votes
0 answers
23 views

Unity Undertone Voice Recognition Not Recognizing Speech From the Second Time Being Invoked

I am using Undertone for a Unity project to recognize user speech input and transcribe them in real time. I largely duplicated from the RealtimeTranscriber.cs example, which is included in their demo ...
Amarth Gûl's user avatar
  • 1,056
-1 votes
2 answers
51 views

Create a shoot meotd unity [closed]

I created this script to be able to shoot on unity. Does anyone know if it's possible to reduce the code to shorter lines of text? public class ShootBullett : MonoBehaviour { public GameObject ...
unityTips's user avatar
0 votes
0 answers
16 views

Unity 3d queueing NPC

How is it better to create a script for controlling NPC behavior in case of Queue like a queue to Cash Desk? I am trying to create a finite-state machine inside NPC script, that would be there for ...
Denis Pankratev's user avatar

15 30 50 per page
1
2 3 4 5
2888