All Questions

Filter by
Sorted by
Tagged with
-1
votes
1answer
11 views

Creating custom editor fields based on presence of custom attribute

I'm creating a manager object that controls a bunch of other objects at once. I want to be able to restrict / expose parameters in the target object to the manager via a custom attribute. I have the ...
0
votes
0answers
5 views

How to create game server using Photon like SFS 2X

In SFS2X there is a user dashboard to upload the JAR file. The JAR file contains all the game logic. From Unity, I send a request to connect with the game server to play the game. How to do the same ...
-2
votes
0answers
13 views

How to create a car door entry animation in Unity? [closed]

I am new to Unity. I am creating a game and I need the player to enter a car with an animation. I tried to implement this based on some YouTube tutorials... [Moderator note: this is where you should ...
0
votes
0answers
14 views

Getting XR Grabbable items networked with Unity

I'm trying to get XR Grabbable objects networked in Unity, with the networking framework Mirror. This should be a simple task as Mirror has a component called "NetworkTransform" that simply ...
3
votes
2answers
23 views

How to not cover up the Android/iOS top status bar (eg. with time, network/wifi icons) in mobile Unity app?

I am making an Android/iOS mobile app in Unity. Currently, when I build it and install it (for example from APK to Android) it loads completely full screen covering up the top phone status bar which ...
0
votes
0answers
18 views

Avoid clipping objects when looking at them close-up in the Scene view

I am making a game in Unity3D, but whenever I get about 5 meters close to an object, the camera acts like I am right by it and does not render part of the screen. Here is a screenshot: This is really ...
1
vote
2answers
23 views

How to have unity inspector variables modify each other bidirectionally and update in real time [duplicate]

Trying to make some inspector controls that both modify the same thing but in different ways, and I want them to both update when the other is edited. Won't bore with the details but there's a reason. ...
2
votes
0answers
46 views

How to protoype a multiplayer game whose fun comes from having lots of features

I've seen plenty of testimonies that to make a good game and not waste time, one should prototype early, quickly see if the core is fun as is, and not focus on graphics, menus, sound, secondary ...
-1
votes
0answers
27 views

College Project [closed]

I'm making a win scenario for a basic college project. I am trying to initialize some fireworks to shoot off when all checkpoints have been crossed. Error i'm receiving is CS0029 Cannot implicitly ...
-2
votes
1answer
20 views

Why I'm getting message in the editor console window , Look rotation viewing vector is zero?

Look rotation viewing vector is zero UnityEngine.Quaternion:LookRotation (UnityEngine.Vector3) Waypoints:Update () Why I'm getting this message and what should I do with it ? It's not a warning and ...
0
votes
0answers
27 views

1Bit Bayer Ordered Dithering Shader [closed]

I’m having a problem trying to fix my 1bit ordered dithering shader this shader is going to be perfect to be used but there is some detail that I would like to fix first of all, this shader is not ...
0
votes
2answers
42 views

What is the best way to make firetruck outriggers push firetruck up on specific corner

Unity3d Hello, I'm trying to recreate functionality of outriggers stabilizing a firetruck before the ladder is raised up. How would I go about making the downward force of the outriggers lift the ...
-1
votes
0answers
48 views

Collision detection based on Vertex Data on the GPU

I know questions related to collision detection have been asked multiple times, but I find all of them like this and this depend on the assumption that I have the vertices of the Game Object when I'm ...
1
vote
3answers
343 views

GM files in online mobile games: what type of GM file should I keep a local copy and how does it synchronize with server?

In mobile game development there are types of data that are not user save-data but are necessary for the game, we call it GM files. In my specific case, the GM files include text data such as "...
8
votes
1answer
3k views

How can I "zero out" velocity in an arbitrary direction?

I'm currently running into an issue with my character controller using physics-based movement of rigidbodies in Unity. Here's an illustration of the issue I'm facing: Basically, after a jump, my ...
0
votes
0answers
34 views

How can I draw gizmos only at runtime?

...
0
votes
1answer
27 views

How do I calculate a matrix to render a mirror about a plane using GLM?

I've been trying to work out how to render a mirror for a while now, but a lot of resources I find either use very outdated tools I'm not familiar with, appear to be college slides referencing other ...
0
votes
0answers
25 views

When I tried upgrading my project to a newer version of unity, then downgrading it to the original one, it gave me 3 errors having to do with sprites

So I upgraded my project to a newer version of unity because some dude told me that i could export my game (i couldn't). So I downgraded my project to my original editor version and it gave me these 3 ...
-1
votes
1answer
53 views

Extracting cell center and corner points from rasterized Voronoi diagram

I currently have this code which I copied from Rosetta code: ...
0
votes
0answers
15 views

Efficient dynamically modifiable terrain system [closed]

I want to create a nice terrain system for a mobile game, which I develop in Unity. The terrain needs to support dynamic modification at runtime, e.g. cutting out a block from the terrain when that ...
0
votes
0answers
14 views

Unity touch position infinity

When I try to get the touch#1/position [Touchscreen] I receive as value (Infinity, -Infinity) with the new input system of Unity3D My settings are Passthrough and Vector2 as expected value. The ...
-4
votes
0answers
29 views

How to re edit existing game [closed]

I just wondering if it okey to edit existing game, make it more alive, but I don't know how.
-1
votes
1answer
34 views

How do I create a method that adds a new sprite to the game?

I want to have a script in my game that adds a card. I am using a Card class for all my cards, so I don't have to make a prefab for each card. Instead I can do ...
0
votes
0answers
28 views

How to snap an object to an axis in 3D?

I have a script that lets player move a Rigidbody in my game with a mouse, and I want some objects to snap to other objects' axis (let's say guide) when they are near. So when an object is close to ...
0
votes
1answer
22 views

Give an opaque color to inner base of otherwise transparent cube?

This is my first time using a material in Unreal Engine. I am trying to create a transparent cube except for the inner face of the base, which I would like to be opaque white, like in this drawing: I ...
0
votes
0answers
26 views

Rollback netcode: how to avoid teleportation?

I've currently implemented rollback netcode with a central, authoritative server (wooh!). I'm running into issues where if players have zero input delay, the other players see them "teleport"...
-1
votes
1answer
31 views

How To Avoid GetComponent on raycasts and collisions

GetComponent() is suggested to not be used so frequently because it can cause a performance impact. I'm working on a game that needs to check the components of ...
0
votes
0answers
9 views

local to global additional rotation

An object has a rotation (α, β, γ) in 3D space, using Euler extrinsic rotation (x–y–z). This object also has an additional rotation (Δα, Δβ, Δγ) in local coordinates. How can this information be ...
-1
votes
1answer
26 views

Bullet Fire stuck on loop

When i shoot my bullet the unity explosion prefab keeps playing I have a gun Script ...
0
votes
1answer
16 views

How to remove the influence of a region of a texture, using texture stages?

I created a 512x512 shadow texture, and I don't want to render the center part on my Terrain. Can something like this be done? I didn't find anything on the internet about this (Example as in the ...
0
votes
2answers
28 views

How would I go about preparing my skybox for a z-up world orientation?

**Solved!** Special thanks to comments from Maximus Minimus and Jherico. Scroll down for the solution made in the shader. I am working on a vulkan renderer in rust using the ash crate. I would like to ...
0
votes
1answer
29 views

How to knock animated character backward when sword strikes wall

I was wondering how to make animation and physics interact. Specifically, I want to make it so when my character (rigidbody) plays a sword hit animation (swinging the sword in front of it), it makes ...
0
votes
1answer
43 views

Improving performance of lighting on mobile

I'm trying to make a 3D game for mobile. When rendering a very simple scene, my performance drops from 60 fps to 30 fps when I use fragment shader lighting instead of vertex shader lighting. I really ...
0
votes
0answers
6 views

Deserializing Unity Mixed mode into YAML

is there a way to deserialize .unity and ProjectSettings file in binary format down to yaml? I provide an example of one of such ...
0
votes
0answers
31 views

How can I implement procedural generation with an undetermined amount of types of terrain?

I'm trying to create a very modifiable game starting with terrain in the form of a tilemap. Any type of tile can be removed, modified, or created by the user. The problem is that I can't find a way to ...
-1
votes
0answers
20 views

Why is my if method not running? [closed]

I am trying to make wander code for my player and the part for it wandering and going around is working however the part that stops the wander and makes it go back into idle doesn't work. I tested it ...
0
votes
0answers
25 views

Photon PUN OnPlayerEnteredRoom not triggering

I'm very new to Photon, medium experience in Unity. I'm trying to implement a lobby where, once a player enters the room before the game starts, a player card pops up for them ie. just their picked ...
0
votes
1answer
36 views

Deriving shadow position from a 2D heightmap

I have a 2D heightmap with discrete values. Based on these values they should cast a fixed position shadow (constant angle respective to the "sun"). I can figure out how to cast it on a flat ...
-1
votes
1answer
26 views

How to rotate my enemy so it scans the area?

Hi I am new to unity so I am not super familiar with methods. I am trying to make my enemy rotate left then right double the amount that it rotated and back to the middle like this: +10 degree, -20 ...
2
votes
1answer
895 views

Why is there only one variable displayed in the Inspector?

Using the following code, only one variable is shown in the inspector: [SerializeField] private GameObject _obj; This makes sense, since there is only one field. ...
-1
votes
1answer
26 views

Why does a public variable define a private one? [closed]

What is the point of such work with variables? public GameObject Obj => _obj; [SerializeField] private GameObject _obj; A private variable loses its privacy ...
0
votes
0answers
25 views

How to save a class full custom property types and their data to disk

Background: My app is a sandbox with a large number of parameters that I want to be able to easily add / selectively expose to the user, edit during runtime through the game UI or from the Unity ...
0
votes
0answers
20 views

How do you come up with formula, balancing and state management? [closed]

Let's look at a game with lots of stats and modifiers: If you are starving, you move slower; If you are inspired, you do more ...
-1
votes
0answers
22 views

Problem trying to detect input focus pygame

I am currently creating my version of the classic "Snake" game from scratch. I have added code that creates a dialogue box using the Tkinter module, allowing the player to choose whether or ...
0
votes
1answer
69 views

Math formula for: the higher the stress, the higher the difficulty

My game has a stat called Stress, and the player has some missions to do. Each mission has a computed stat called Difficulty ...
-1
votes
0answers
13 views

Humanoid Rig force knee of my character to rotate, but it shouldn't be

Demonstration of the problem - video My export settings My Unity import settings Rig Settings Animation Settings
-1
votes
0answers
16 views

A method not getting called because of a NullRefrence exeption error [duplicate]

I am getting a nullrefrenceexception error from my main script where I try to run a method from another script and I get that error. I also get this warning: "You are trying to create a ...
0
votes
2answers
22 views

Humanoid rig breaks my animation

The humanoid rig behaves strangely with my animation from Blender. Here is a demo of the problem - video. Can anyone suggest what the problem might be?
-3
votes
1answer
33 views

GL error GL_INVALID_OPERATION: mismatched type setting uniform of location "4" in program "1"

I get this error while trying to add lighting ...

15 30 50 per page
1
2 3 4 5
1059