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.
16,519
questions
0
votes
0
answers
7
views
Why does my game lag while testing?
While I was testing my game yesterday, the fps started at 60 and dropped below. While testing my game today, my game, which normally starts at 60 fps, started with 2 fps. Thinking that the reason was ...
0
votes
0
answers
11
views
Unity New Input System - when is it not experimental?
I am curious which version of unity until the New Input System is not listed as experimental?
0
votes
0
answers
9
views
How does Linear and Exponential Fog work in Unity URP?
I am a novice in Unity, I see that volumetric fog is not available when using the URP and the recommended method is to use Linear or Exponential Fog.
I played around with it a little. Even though ...
1
vote
1
answer
134
views
I am testing the flyweight pattern on thousands of GameObjects but its not helping save memory. What am I doing wrong here?
I am trying to understand the flyweight pattern better by trying to optimize memory usage by spawning 10000 copies of an enemy GameObject that I have which has an Animator component, SpriteRenderer ...
0
votes
0
answers
16
views
Dualshock controller gives no input on android build
I want to create a 3D game for android, and move the first person character with a PlayStation 4 default controler (DualShock4). In the unity editor, I can move, look and jump freely how I want, ...
0
votes
0
answers
18
views
FPS hands recoil
I am working on FPS game. I have created few animations in blender.I started working on weapon shooting and understood that for that one I need procedural recoil.I created a script that generates ...
1
vote
0
answers
22
views
Finding objects with tags vs Layers vs Scripts in Unity?
I never know which one I should use. If a bullet flies towards a target, let's say a zombie, should the Zombie have a tag? Maybe an "enemy" tag, or "Damage" tag? Or should I look ...
1
vote
1
answer
46
views
How to structure a complex inventory system in Unity?
My inventory needs to deal with different Item types. Item is my base class, which is extended by Armor, Weapon, Spell, Scroll and I might add more in the future.
All items have an interaction on ...
0
votes
1
answer
32
views
How to filter/ignore child objects from an ML Agents RayPerceptionSensor in 3D?
I am making a snake AI with Unity ML Agents. There will be lots of snakes who will eat and dodge each other.
A 3D RayPerceptionSensor detects everything, but there is a specific case where a problem ...
0
votes
0
answers
22
views
Calculating hemisphere points of a scaled capsule2D
I have a very simple code that draws the shape of a pre-defined capsule. It handles everything well, except the case when GameObject to which CapsuleCollider2D is attached or any parent GameObject up ...
0
votes
0
answers
40
views
How to make the character selection screen? [duplicate]
Hi to everyone i want to make the character selection screen the following 2 are scripts
...
0
votes
1
answer
66
views
How to efficiently instantiate large amount of GameObject?
The topic with the same title here
How to efficiently spawn & render many cube prefabs for a voxel world?
is actually asking about efficiently rendering.
Assume I need to instantiate a lot of ...
7
votes
1
answer
1k
views
What is the meaning of green plus icons in component headers?
Some components have these green plus icons. Some don't.
What does it mean?
0
votes
1
answer
40
views
Prevent rotation after setting Human Pose
I'm attempting to move the fingers of a prefab using muscles with the SetHumanPose method. However, the prefab is rotated 90 degrees on each call to ...
0
votes
0
answers
32
views
Best Unity Multiplayer Tool for 70+ units? [closed]
I am making a game that combines Brawl Stars and Survivor.io and i plan to have 2 - 6 players on the map with additional PC units (up to 100 at max).
There will be around passive 20-40 abilities ...