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
2 votes
0 answers
12 views

Profiling Loading and Unloading of Addressables

I've recently set up a small helper class to load and unload addressables, it contains the following methods for that purpose ...
0 votes
1 answer
22 views

Get connected GameObject information in unity C#

I am working on a project where I want to know which nodes are connected with the connection Hub. Like the picture below: These nodes are the game objects and I want to know their connection status ...
0 votes
1 answer
12 views

Mirror a 3d position vector3 based on a vector3 and rotation

I have a point in 3d space and a coordinate with angle (a imaginary plane) Here's my input data : A ) a vector3 which defines a position in world space B ) a vector3 which defines a mirror position C )...
0 votes
1 answer
1k views

How to create terrain made of small tiles?

The terrain in my game must be created using tiled assets. I have unique textures for each tile (all with the same height and width that can be used to compose the terrain) and the information of each ...
0 votes
1 answer
148 views

How to create a LUT from original and processed images (not perfectly the same)?

I would like to create a certain LUT for my game in Unity. The usual way would be to take a screenshot in your game, process this screenshot in an image editor like Photoshop / GIMP and then calculate ...
0 votes
0 answers
20 views

Adding Velocity To Movement In A Parabolic Arc

Good Evening All, I am moving my projectiles in a parabolic arc using the following code: (Credit to Joe Strout for the formula! https://luminaryapps.com/blog/arcing-projectiles-in-unity/) ...
0 votes
0 answers
15 views

Google Test ads appear on the phone, but the actual ads are not visible. Why could it be?

When the player object collides with another object, it disappears and the "game over" menu is opened and the score is displayed. Just then, the "interstitials" advertisement ...
0 votes
1 answer
630 views

Verlet rope between two moving points connected with a spring joint?

I'm connecting two moving rigidbodies using a spring joint in Unity. Between them, a rope will be rendered using a line renderer and I want it to move realistically as the joints move, without physics....
0 votes
1 answer
87 views

Keep player within screen bounds, top down shooter

I am using x and z axis to go left/right ; up/down respectively. The Camera is on the y-axis. I have the following code so far - private float playerWidth; private float playerDepth; ...
1 vote
1 answer
673 views

issues about combo attack system animation

i have some issues about my attack animations right now, i'm doing my light attack which has 3 separate attacks and animations. the scripting and trigger works(without animation), but my animation ...
0 votes
1 answer
57 views

Deal damage just once, rather than repeatedly till the enemy dies

I am new to making games with Unity. I am trying to damage the enemy. So far, the damage works. The problem is it will repeat it until the enemy is dead, but I want it to damage the enemy only once. <...
0 votes
2 answers
3k views

Why does the object spawns only on client?

In my game I have an object, let say food, that whoever consumes it, that player will spawn one more element. I am checking collision in Update. The following code is working fine on server side, but ...
0 votes
1 answer
27 views

How to know what is included in a Unity Asset Store asset

I'm very new to Unity and game development in general. I'd like to re-create the birch forest demo video shown here. I presume this isn't a scene that comes with your purchase, but just "what you ...
0 votes
0 answers
18 views

Problems with animations of UI [closed]

Here is the situation: I got 4 animations of UI element: idle which is running all the time, action animation and 2 other clips which is actually go away from screen back to screen. So after the ...
3 votes
2 answers
603 views

2.5D platformer how to darken building edges?

I was wondering how I could go about creating a vignette type effect / some sort of volumetric shadow for the 'cross section' parts of a 2.5D level. The effect I'm going for can be seen in 'This war ...
0 votes
1 answer
15 views

Create token in Unity to send post request to Laravel controller

Some time ago I wanted to be able to create a token in Unity and send it to a Laravel Controller for saving logins and user game data to an account. I eventually got this working so I am sharing my ...
0 votes
1 answer
25 views

Instantiate only specific objects in Unity

Here is the situation: I have 10 weapons in my game, in main menu player may choose only two weapons that could take to the game, and this information about two weapons will save in a kind of "...
1 vote
0 answers
18 views

Unity fading alpha of TMPro text causes noticeable frame rate drop

I am using this code to change the transparency of my TMPro TMPUGUI text when changing a page (from a book). ...
1 vote
3 answers
12k views

A Native Collection has not been disposed, resulting in a memory leak. Enable Full StackTraces to get more details

A Native Collection has not been disposed, resulting in a memory leak. Enable Full StackTraces to get more details. In working on saving to file the ...
0 votes
1 answer
1k views

Tile draws pixels from adjacent tiles

Whenever I try to draw from the tile palette, this is the result. why does this happen? I have tried messing around with the palette, how the sprite editor has sliced the tiles and played around with ...
0 votes
0 answers
23 views

Procedural Generation of City Environment for Endless Runner [closed]

For a university project, I'm currently coding a game similar to Subway Surfers and Temple Run. As part of our assignment, we need to implement procedural generation of some aspect of the game. For my ...
1 vote
1 answer
1k views

Random move to certain points?

I want my enemy to move randomly to certain points on the scene. It moves to one point and then stops! It does not continue to the other points! Here is my script: ...
0 votes
0 answers
24 views

My player moves back after I stop any user input in Unity

In the first scene(grass scene), the player works fine in the grass scene, but inside the house, the player after any input the player moves back a bit. https://i.imgur.com/aHXwCR7.mp4 My player ...
0 votes
1 answer
19 views

Smoothing transition between Animator and script controlled character

I have a NPC which has a strict match logic (bot player), and I am moving it on FixedUpdate(), However, on certain events in the game I am activating animations ...
0 votes
0 answers
9 views

Shader UV Normals/Direction vs UV Tiling/Stretching for Sprite Shape

I'll be the first to admit I'm not fantastic with shaders, so as far as I know, this may be a very simple solution that I'm just unaware of. What I'm trying to do is to write a shader for Unity's ...
1 vote
1 answer
74 views

How To Calculate The Correct Sprite Dimensions?

I am creating a 2.5D game similar to Paper Mario. I want the sprites that I import to Unity to be the perfect dimensions so that quality is not affected by the camera's position. If I'm understanding ...
1 vote
2 answers
418 views

Particles not rendering over projectors

I am using projectors for shadows...When I use particles for bike speed up i.e., nitro speed the particles get cutout by those shadows.... Here is screenshot of it, Here is my shader code of ...
0 votes
1 answer
62 views

Sprite becomes blurry or jagged when camera zooms out

My game uses 2D sprites in a 3D environment, and I'm really struggling with my sprites' quality. I have high resolution vector art with clean linework created for my sprite. I'm exporting it as a .PNG ...
-1 votes
1 answer
107 views

Why process physics before the variable framerate update in a game loop?

As far as I know, most game loops are executed in the following order: Process user input Update (once per frame) Physics (also known as fixedUpdate, 0 to N times ...
0 votes
1 answer
9k views

UPDATED: Deserialise Nested JSON with JSON Utility Unity 5.4 [duplicate]

I am trying to deserialise a JSON with Unity 5.4's JSON utility (here). This is what my JSON looks like: ...
1 vote
1 answer
40 views

How to make a shader which alpha blends against only itself, and is opaque otherwise?

Imagine a scene with a minecraft style world held in a bounded container and is being viewed from a isometric 3rd person camera that has a fixed orientation. I want to create a shader that expresses ...
3 votes
3 answers
3k views

SteamWorks.Net for unity and inviting a friend to a multiplayer game

I'm trying to send an invitation to a steam friend and have it that when he accepts I create a PUN 2 room for both players and they can start their match. So far I've done this : ...
0 votes
1 answer
46 views

How to reconnect a client to a match (not the server)

In a multiplayer client-server Unity project using Mirror networking, I have a matchmaking system where the server matches two players and gives them a MatchID. The ...
0 votes
0 answers
14 views

Workflow For Manually Creating .DDS MipMaps For Unity?

I am hoping to gain some clarity on the proper way to create .DDS format mipmaps for Unity. I was able to create the file and successfully import it into Unity, but I am certain my workflow is far ...
0 votes
1 answer
51 views

Compute the difference between two vector3 and iterate with the difference in mathematically

I have two eularAngle vector3 A , and vector3 B; I want to rotate the vector3 A rotate to vector3 B by 10 small steps; ...
5 votes
1 answer
2k views

Unity Capture And Display Live Camera Feed

I want to display the video using the device camera on specific part of the screen on iOS, android and Editor. I was able to find the WebCamTexture which display the camera video on the Quad (3D ...
0 votes
1 answer
27 views

Increasing Recoil Over Time With 'Diminishing Returns'

I have a recoil system where per shot, the recoil value increases. I want the recoil to increase more quickly for the first 10 or so shots, then settle to a slower increase rate that then remains ...
0 votes
1 answer
13 views

Collider overlap is not being detected

I am writing some logic to handle spawning objects into a game scene at a randomly generated location based on the size of a collider's bounds. The logic for getting the coordinates and instantiating ...
0 votes
1 answer
1k 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
0 answers
22 views

AudioSource.isPlaying is not working in Unity WebGL Build

I am passing a clip to play on the audio source. Next, I wait for the audio to finish to invoke the next action. But the waiting loop never ends. Once the audio clip ends, the time I read from ...
0 votes
1 answer
27 views

Navmesh agents trying to go to destroyed objects

I am still working on the RTS and have added a system that allows enemies to randomly wander. However, when multiple enemies fight one of my units, they will just clump up Afterwords instead of going ...
0 votes
1 answer
3k views

Collision Player and Tilemap Unity

i am a student in austria. I am working on a project for school, where we have to make our own first game with unity. Because it is the first time using unity, i constantly run against problems. Most ...
1 vote
1 answer
568 views

Unity Android IAP "Purchase failed because Purchasing was not initialized correctly"

What I have IAP button is working perfectly in unity editor. After purchasing, i'm getting debug message "ProcessPurchase: PASS. Product: 'full_version'" . But the button does nothing when I ...
4 votes
2 answers
9k views

Unity Quaternion.LookRotation meaning

I've gone through Unity's documentation for Quaternion.LookRotation, but I didn't get the full understanding of how it works. What is the meaning of Creates a rotation with the specified ...
0 votes
1 answer
15 views

How do I calculate the direction of an object relative to the another object's view

Here is a diagram of what I'm looking for: I am trying to find the math solution to determine where that smaller circle is relative to the bigger circle's view. I thought that the easiest way would ...
1 vote
1 answer
995 views

Unity target position never stops with Vector3.SmoothDamp

I've integrated Vector3.SmoothDamp method to have a more fluid and native movement between the character and his camera in Unity. The camera movement is perfectly ...
0 votes
1 answer
485 views

Emotiv Epoc integration with Unity

I'm coding a small game on Unity to control with the Emotiv Epoc headset. However, as I'm new to Unity, I'm having some trouble setting everything up to connect the device with my game. I downloaded ...
0 votes
0 answers
20 views

Find points on circumference similar to an orbit entry point for a spacecraft [duplicate]

I'm trying to find the point coordinates on the edge of a circle like this: I know: The coordinates of Point A The coordinates of the centre of the circle (Point B) The radius of the circle I've ...
0 votes
1 answer
25 views

How to emulate the look of loading ZX Spectrum title screens in Unity

I am looking to replicate the style of screen loading as seen on the ZX Spectrum in Unity. Not the stripes of colors in the background. Just the title image loading. Specifically the way it looks in ...
0 votes
1 answer
66 views

Duplicate class errors when building app larger than 150mb with Android App Bundles

I have been trying to get Asset Bundles to work since my app is larger than 150MB, but the Google -> Build Android App Bundle... step keeps failing on me. I am ...

1
2 3 4 5
308