All Questions

0
votes
1answer
40 views

Custom shadow mapping in Unity. Works with preservative Light view but not with Orthographic

So about a week ago I decided to make my own shadow mapping technique in Unity based on my understanding of the whole thing. The entire experience was somewhat successful. I learned a lot and I get to ...
-1
votes
0answers
21 views

Canvases when active taking a lot of memory [duplicate]

So I have a bunch of canvases and each canvas has a bunch of sprites (UI images). When they are active, my memory increases by 200mb and when they are back inactive, they are still in memory. What to ...
0
votes
0answers
26 views

Standard Asset package import in unity 2018.3

I am using iMac, I don't see any for import standard package in unity. My working project need to import standard packages. I use unity version unity 2018.3.0f2. Please guide me from where I get the ...
2
votes
2answers
71 views

Pathfinding with non-deterministic transitions between nodes

Consider a map not unlike a board game, where some of the moves are made non-deterministic. For example, moving onto certain cells will require you to roll a dice to determine where you should move ...
0
votes
0answers
33 views

Failed to spawn 'dotnet --info' error in VSCode when creating new scripts

I open new project with pipeline temp, and when I create a new c# script there is an error shown in the output window: Failed to spawn 'dotnet --info' Which ...
0
votes
1answer
18 views

Decreasing distance for a Configurable Joint at run-time | Unity

I have written a script that uses ConfigurableJoint to connect a ball to a hing so that it moves in a fixed circular path around the hinge. The problem is that I want to decrease the distance between ...
0
votes
3answers
75 views

ECS in MMOs - How to handle IDs for different object types?

Using a DOD approach, what is the typical way to handle dealing with the actual IDs of game objects? Obviously, each entity has a unique entity_id that is ...
0
votes
0answers
33 views

Unexpected memory use by meshes in a scene with only canvasses & images [closed]

I have a weird memory issue. I have 10 canvases in my scene. If I delete them all, my meshes get removed and memory is reduced, even though I don’t have meshes at all. If I delete 9 and leave 1, ...
0
votes
0answers
19 views

Rotate projectile toward target [closed]

Rotating a projectile toward a target Say I had a bullet a character shoots at an enemy. If the enemy was directly above me I want the bullet to be rotated at a 90 degree angle. Or if the bullet ...
0
votes
0answers
15 views

Reflection captures need to be rebuild message wont go away

So I have a problem. I can't seem to get rid of the message saying reflection captures need to be rebuilt. I have built the lighting and clicked on build reflection captures but the message is still ...
0
votes
1answer
24 views

draw concave polygon from set of edge points

I'm having troubles trying to rearrange a set of points where each point is part of the edge of a concave polygone. My set of points is not sorted in any order, they are just randomly put in an array. ...
0
votes
1answer
27 views

Unity - Calculating a rotation based on game time

I have a simple script to make an object spin: Spin Speed is the speed to rotate the object on each axis (preferably in degrees per second). Local is whether the rotation should be done based on ...
0
votes
0answers
15 views

TBN matrix for normal and parallax mapping

I'd like to refer to this question because I didn't completely answer to my problem. I've implemented normal and parallax mapping but because of some assumptions I have to use two different TBN ...
0
votes
0answers
48 views

How do I add earning points to my game? [closed]

I'm new to creating games and I'm working on making a simple game to be played with friends on our website. Pretty much we're trying to figure out how to let the user submit a score and receive a "...
0
votes
1answer
19 views

Unity - Instantiate GameObject from client on Network

I am building a game where a weapon shoots prefab bullets. I am trying to make this a multiplayer game, so the bullets need to be spawned into the Network. What ...
0
votes
0answers
12 views

How can I prevent the balls from merging? [duplicate]

In my game mutiple balls are overlap/merge into one ball.please tell me solution of this problem.
0
votes
0answers
19 views

nullreferenceexception : object reference not set to an instance of an object [duplicate]

How to solve this nullreferenceexpttion ...
-1
votes
1answer
46 views

How can I prevent the balls from overlapping?

I am making a ball rolling game controlled by tilting an accelerometer. In my game multiple balls overlap, so they end up showing as only one ball. How can I solve this problem, so balls do not ...
0
votes
1answer
55 views

Keeping score server side to prevent cheating

For my Unity WebGL game, I'm looking into storing the score of users in a database to make a highscore table (it's not a multiplayer game). Because client side code can always be "hacked", the advice ...
0
votes
1answer
53 views

Why isn't my sound playing on collision?

I tried several approaches to get my sound working. This is one of them which most of the online tutorials showed me: ...
0
votes
1answer
13 views

Rewriting a text object [duplicate]

I'm trying to set up a UI system. Say I have a text object 'text' which is visible onscreen. I want to change it with a button press using a script such that the text box's previous string is replaced ...
0
votes
0answers
56 views

Stop Animated Tile from looping Unity2D C#

I am using the animated Tile script and starting the animation when I need it, by replacing a static tile with an animated one. Currently on collision with the player, however, I need the animation to ...
0
votes
0answers
24 views

Unity windows build crashing due to Access violation error

I have unity player build for windows working fine on my pc while my client facing a crash with access violation log. Usually access violation occur(I experienced) Low disk space Heavy project 32 or ...
0
votes
0answers
22 views

Godot: Possible to create a 2D tilemap and set it as a texture for a 3D surface?

If I created tilemap of some sort of pattern or image and wanted to set it as the texture of a 3d surface or 3d model, how would I do it?
0
votes
1answer
43 views

checking if an array rank is not equal to an int C#

I'm creating an inventory system for a dungeon crawler, I've got world gen, and player controls down, and this is the only snag.` ...
1
vote
0answers
15 views

Instances in the Unity Profiler Timeline

What do Instances mean when you click on an operation in the Timeline section of Unity Profiler? In this example: Total: 11.90 ms (10 Instances)
0
votes
0answers
11 views

Remove some shaders and assetdatabase

I have some shaders that are taking some valuable memory: 1- Particles/ Standard Surface 2- SpeedTree shaders 3- Unity Terrain related shaders And also I have something called AssetDatabaseV1 that is ...
0
votes
0answers
18 views

Adding another diffuse texture on top of the existing one in Unity3D?

I'm working on a voxel game, and I would like to add different properties to the voxels, which are visualised by an extra (transparent) diffuse texture on the voxel's default one. Voxels could have ...
0
votes
1answer
21 views

Unity UI Buttons don't work when clicked, don't seem intractable at all

This is probably a quick and easy fix but I can't seem to get it. As the title says I've got UI buttons which appear when my character dies, they used to work just fine but now suddenly when doing a ...
0
votes
2answers
50 views

Why does using .Lookat() cause the enemy to look left instead of at player, and how can I fix it?

I am new to Unity. I have searched but I couldn't find any answers on this. Here is my code: ...
1
vote
2answers
48 views

How can I check if the mouse hits a quad in 3d, and where it hits it?

I have a sketch that produces the following: ...
0
votes
1answer
34 views

Scrolling in 3d Shmup with 32Bit era effects

How can I create a scrolling effect like in Ikaruga, where the background is on Rails and the foreground is fixed with the player in Unity? https://www.youtube.com/watch?v=H6d0PkEPKSk Some more ...
0
votes
1answer
40 views

How do I destroy a class/how do I link a class to a gameObject

I am fairly new to programming and I decided to create a Pong game. I created the sprites and was able to make the paddles and the dot work. The only help I needed was when I wanted the dot to ...
0
votes
1answer
20 views

Second input not working when using 2 virtual joysticks

We are trying to make 2 virtual joysticks for both sides of the screen. Movement joystick can be enabled at any pressed position of the left side of the screen and shooting joystick can be enabled on ...
0
votes
1answer
20 views

Order of rotation in Euler angles

I'm want to control the direction my camera looks, so I'm using Euler angles, so rotating around an axis is relative to rotation around previous axis. Something like this. I want to always rotate ...
0
votes
0answers
29 views

Skinned Mesh Looks Weird in Unity?

I'm fairly new to using blender and I think am having trouble with importing my file to Unity. Or maybe by model needs to be changed. Here is what my model looks like in blender: This is what it ...
0
votes
0answers
17 views

Resources.UnloadUnusedAssets runs automatically with scene load?

Can anyone here confirm whether Resources.UnloadUnusedAssets runs automatically with scene load? So what I am doing right now is, at scene start I load my asset bundle, pick an object and instantiate ...
1
vote
1answer
58 views

What are the semantics of these quaternion functions in XNA/Monogame?

I am having trouble understanding the semantics of some members of the XNA/Monogame Quaternion class. The docs are not helpful, and tutorials trying to explain ...
0
votes
0answers
44 views

Unity: AddForce problem

I have two spheres on a plane. I'm applying AddForce to the first ball after which it collides with the second one. The weird thing is that the impulse is not passing from the first ball to the second ...
0
votes
0answers
13 views

Cannot deploy MonoGame project to BlueStack (ADB0000: closed)

I'm using MonoGame 3.6 with Visual Studio 2017 Community and I'm trying to deploy to BlueStack as Android emulator. VS can see Bluestack and permit me to launch deploy but ends with this error: ...
0
votes
0answers
14 views

Multiplayer Card Game using Photon Unity Networking

I'm making a card game using photon and an important issue i am facing is getting reference of other player objects that are instantiated on the network.The Card game allows players to swap cards with ...
0
votes
0answers
21 views

Audio architecture in Unity: a time vs space paradox

Assuming we have a well imported audio clips setup. For audio clips that are quite similar and just vary by some slight differences on the shape, would you rather have them as separate files (Space: ...
0
votes
1answer
60 views

Shooting weapons Unity

I'm trying to create a falling word game like z-type (code here). Once the game starts a few words are displayed on the screen. When the user types a letter and if that matches with the first letter ...
0
votes
1answer
25 views

Godot: error(10) expected '(' after Identifier

When trying to write up a new shader for a material, I've been trying to create a variable to use to alter speed and test animation. Now, the below outputs fine until I try to assign a value to number....
0
votes
1answer
35 views

“RENDER WARNING: there is no texture bound to the unit 0” When not Rendering Texture

I have a webgl program that sometimes renders textures, but mostly renders triangles or lines. When I am not rendering a texture, webgl gives the warning, "...
0
votes
0answers
25 views

Post-Processing effects not visible with LWRP in Unity3D

I'm are running into an issue when setting up Post-Processing effects for the new Lightweight render pipeline. Post-processing effects are visible in scene and Game view, but not in Play mode. The ...
0
votes
0answers
23 views

GLSL and normal mapping

I'm trying to implement normal mapping on my existing shaders, but I'm definitely doing something wrong, probably related to the TBN matrix. The point is, while drawing two perpendicular walls with ...
1
vote
2answers
113 views

Why does my FPS go down so much when rendering basic sprites?

I have a UWP DX11 application and I've recently removed the vsync and noticed that my fps goes down drastically when I'm only drawing very basic sprites on the screen and I'm trying to learn why this ...
1
vote
0answers
23 views

OBB vs Frustrum collision detection

Some definitions: An oriented bounding box (OBB) is a rectangular block which can be represented in many ways, as a collection of eight vertices, a collection of six planes or others, for this ...
0
votes
0answers
51 views

How can I handle two collisions in the same frame?

My problem is that I have a player with collisions, and enemy can collide with players collision and execute Hurt function in players script. But the problem is enemies can overlap and can hit the ...

15 30 50 per page