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

Advice regarding Unity hosted content

I'm currently trying to build a mobile application that, for the purposes of trying to keep small in size, I would like to have store much of its content Online and be downloaded to the users mobile ...
0
votes
0answers
9 views

Quit from Unity to native iOS app

I'm working on iOS application which is going to include a few unity games. And I investigate an opportunity to exit from the Unity game to the native iOS app with games list. I know that the Unity ...
0
votes
1answer
21 views

2-D character not falling to the ground

I am very new to Game Development and I am making a game with a simple Ragdoll which has a body, a head, and 2 limbs(hands). The head and the limbs are hinged to the body and I have kept the Ragdoll ...
1
vote
0answers
10 views

Client projectile ignores camera Y-axis in multiplayer shooter

I'm able to spawn the bullet and make it move. But the problem is, only the host can shoot the bullet in the way the camera is facing(takes both X-axis and Y-axis correctly). The client takes only the ...
0
votes
0answers
11 views

Cannot select bone influence in Unity

In my sprite editor, under the weights menu, the option for bone influence appears kinda faded and I am not able to select it. Unity is also not generating automatic weights around my bones for ...
0
votes
0answers
21 views

Generating triangle indices for marching cubes mesh

So I am making a programily generating cave program and I have all the vertices but I have no idea how to solve for the faces of my mesh. My code: ...
0
votes
0answers
16 views

Is there any way to move the sprites inside the sprite editor?

I have imported a .png file of a stickman in which I had placed his head, body, two legs, and two hands a bit far apart from each other so that Unity will automatically convert the picture into ...
0
votes
0answers
12 views

After the Build, Application not responding

I have recently completed the John Lemon's Haunted Jaunt https://learn.unity.com/project/john-lemon-s-haunted-jaunt-3d-beginner tutorial. I finished the build step and opened the .exe file to start ...
1
vote
1answer
9 views

How to package a Unity Asset that depends on Addressables?

I'm creating a Unity Asset that I would like to publish on the Unity Store. However, this asset depends on the Addressables package and obviously require an Addressable Database which lives in a ...
0
votes
2answers
27 views

2d Raycast detection doesn't work

I want to check if the position I generated has another object or not. I do this by using Raycast: ...
0
votes
1answer
26 views

Unity won't slice images properly

Okay, so I am very new to Game Development and I imported a .png file(made in Paint) to the assets and that file contains just a circle and an oval, not touching and far apart from each other, both of ...
0
votes
0answers
19 views

Sea is higher than land when importing large real world terrain

I am trying to import some real world terrain into Unity with the help of Global Mapper. The data I am using is download from CGIAR SRTM(http://srtm.csi.cgiar.org/,http://srtm.csi.cgiar.org/srtmdata/)....
1
vote
0answers
23 views

Projecting grid textures to select parts of the terrain (Unity)

So I'm trying to be smart and not use 500+ some tile prefabs to make a grid, and so far the back-end portion has gone swimmingly. I initially used a dedicated mesh to represent the grid, but as I'm ...
0
votes
0answers
8 views

Test visibility on pre-transposed vertex

I'll preface this by saying I'm kinda new to the whole shaders thing, and I and mostly just trying to learn. What I THINK I am doing in the below pass is extending the vertices along the normal and ...
0
votes
2answers
48 views

Random point on a square floor

I have a flat 10x10 surface (floor) made out of cubes of 1x1x1. I am spawning objects from the "sky" and I want them to fall on random points of the surface without exceeding the surface limits. Is ...
1
vote
1answer
57 views

Which files of addressable assets should be committed to Git?

I would like to keep my Git repository as small as possible and exclude any automatically generated files. The developers can re-build their Unity Addressable Assets themselves. Any developer should ...
2
votes
0answers
38 views

how to get android activity callbacks in unity c#?

i know unity works on android activity named "UnityPlayerActivity" the activity has some callbacks like onCreate onResume onPause etc... assume we wrote an actvity class that derives from Activity ...
1
vote
0answers
32 views

Creating custom types that extend certain objects

Really new to C# scripting. I'm trying to extend a TileBase type object to be able to hold custom methods and variables. I want to create a pathfinding script and ...
0
votes
0answers
29 views

Assign 100 materials of different shaders with their respective 2D textures to one shader automatically?

Is there an editor script to assign all materials to one shader specifically including copying the texture? I have found an editor script that changes the shader but does not copy its texture. How can ...
1
vote
1answer
25 views

When setting Rigidbody.isKinematic true collider won't work anymore

I have a rigged 2D character and used Collider2D/Rigidbody2D/HingeJoint2D to body parts to implement ragdoll. It works fine, but I needed to run ragdoll physics only when character is dead. So I made ...
0
votes
0answers
22 views

“Force Quit pressed for Copying file failed” when dragging sprite into Unity

I just created a new project and am unable to add any sprites to the project. Any ideas on how to resolve this? My version is 2019.3.1f1 and i'm running on Linux.
1
vote
1answer
25 views

Back face as pure black with LWRP - Unity

I need to use LWRP in my current project, and I was looking for a way to render the back face as pure black, no lights, no shadows, nothing, just pure black while the normal face would should the ...
1
vote
1answer
29 views

Raycast check for Collisions across XZ coords without Y rotations / Unity C#

I'm really new to Unity/C# (I have a bit of experience in GML but far from professional) and I am currently building out my first prototype. I originally copied THIS script to get a cube that rotates ...
0
votes
0answers
56 views

How should my artist create an isometric curved road?

My isometric game thus far has consisted of 64 x 32 tiles, but my artist has run into a few issues when drawing the tiles. Most of them look fine & have a seamless appearance, but there have been ...
0
votes
1answer
64 views

Why UI isn't instantiate when I create a new object that has Canvas as a child component?

I have this object called Treant and I instantiated him from another Object called spawn. The spawn only instantiates a new Treant every second or not. My problem is that the Treant has a Health bar ...
0
votes
0answers
32 views

Unity - Create an in game windows command prompt [closed]

I am wanting to create a simple windows style command prompt in game. I'm using the 90's Desktop UI Unity asset pack to create a prototype old windows desktop UI. I have been playing around with ...
0
votes
1answer
23 views

XBOX ONE controller inputs vanish in project settings

I'm putting in the inputs for the XBOX ONE controller in Project settings, but when I try to put in the values for the triggers and click on the next window, that value vanishes. I'm putting the value ...
1
vote
0answers
38 views

Aerodynamic Physics

The current unity physics engine is limiting in the sense of drag. It's just not good enough. After a lot of internet sailing... I found this post. https://stackoverflow.com/questions/49716989/unity-...
1
vote
1answer
47 views

Throttling or adding delays between OnTriggerEnter2D calls

I have 2 game objects: Explosion and Enemy. At any given point, an enemy can collide with multiple ...
0
votes
0answers
38 views

Prevent showing movie files after packaging unreal game

I developed a game which has some videos inside it. I added videos into my project folder so that I can access them. After packaging, on the folder all videos will be shown as its original format ...
0
votes
0answers
53 views

How to increase the speed of a projectile?

I am working on a project where I am launching a projectile and according to the following snippet: ...
1
vote
2answers
32 views

Make Render Texture distorted/blurry?

I have created a function that clicks images in real time and these images are copied to render texture that is created. I am looking for a way to blur/distort/half-fade-out the render textures. Is ...
0
votes
1answer
40 views

Unity2D: Child class inheriting onCollisionEnter() methods

I may be an idiot for asking this but I can't seem to solve it myself, I have a GenericWeapon class which has a onCollisionEnter() method which I want applying to all child classes which inherit from ...
0
votes
0answers
11 views

Import blender camera with key frames to unity?

I am wondering if I can take a camera tracked camera from blender and import it into unity. Is there any way to do this? Please let me know! Thanks in advance.
0
votes
0answers
11 views

Unity: Improvements to skinnedMeshRender.BakeMesh performance or alternatives?

I'm running to a situation where I need to do some manual deformation to a skinnedMeshRenderer's mesh vertices after applying some blendskinning. I'm finding that the following code takes ~15ms to run....
0
votes
2answers
84 views

How do I pause the game immediately when it starts?

I want my Unity game to start with Time.timeScale = 0f becuase it starts with a main menu that is in the same scene as the game. I tried to put Time.timeScale = 0f in Awake() but that did not work as ...
0
votes
0answers
17 views

WheelCollider RPM

Hi All if this is the right question in the right place please help me. As I understand motor torque in Wheel Collider is how much force is applied to the wheel but I don't understand why rpm depends ...
0
votes
1answer
36 views

Why aren't the Physics2D.Raycasts reliably colliding with the 2D Box Collider walls?

I've got this NPC walking around and I'm trying to create a cone to represent their line of sight, including how it would be blocked by buildings, similar to how Nicky Case has implemented it as ...
0
votes
1answer
23 views

How to FindGameObjectsWithTag then cast the array of GameObjects to an Array of Interfaces

I have a few GameObjects that implement a common Interface: IsTree. I need to call the function doTreeThing() on each of those IsTrees after getting a reference to each of them via ...
0
votes
2answers
67 views

Is it possible to detect a collision between a sprite and a UI image in Unity?

I have a stationary sprite with the tag "Player" with a Rigidbody2D (dynamic body type and discrete collision detection) and circle collider 2D. I also have a moving UI image; also with a Rigidbody2D ...
0
votes
0answers
28 views

Generating a sprite using a list of points

I am trying to dynamically generate a sprite in Unity to visualize a list of points. What I've got so far is creating a small Texture2D object and then trying to override the geometry: ...
0
votes
1answer
48 views

unity addressables: built game throws InvalidKeyException on android platform while the game runs perfectly in editor

I've incorporated Unity's addressable package into my project, but the issue I have is the addressables do not get loaded when I'm testing on android. The problem persists for all my addressable that ...
0
votes
0answers
23 views

Setting some static value always 0 [closed]

In my game, when game is over, I set some data into static values so that can use in Game Result scene. However I found that some values are always setting 0. Here's the code I'm trying: ...
1
vote
0answers
26 views

Unity - How to make grass details look good from top-down

I have an issue with the terrain details. Since it only draws a single plane per texture, it looks quite crappy with a angled top-down camera, for example for an RTS camera. Is there some way around ...
0
votes
0answers
40 views

Camera looking around with mouse - Unity, C#

I am building a script in C# for camera logic in Unity, the camera is supposed to follow the player (a 3rd person character) around and the user should be able to look around using the mouse, so far ...
0
votes
1answer
25 views

Unity Tilemap's WorldToCell always return with (0, 0, 0)?

Based on a Vector2 I want to know the coordinate of the tilemap at that position. But for some reason, it always returns (0, 0, 0). Why? Why? ...
1
vote
1answer
79 views

Why baked light differ so much from realtime light?

I'm trying to figure why Baked light differ so much from realtime lightning (whose final result I like and prefer!) Left one: baked light, right one: realtime. I've placed a: Directional light 3 ...
0
votes
1answer
40 views

Is there a wall building tool in unity3d?

I'm currently building a maze game in unity 3d and after building a few levels by placing and repositioning cubes by hand as walls, I think, that it would be nice if there was a tool to place walls, ...
0
votes
1answer
16 views

How to apply Image effect only on specific part of objects?

I need a way to censore part of characters' bodies like Cyberpunk 2077.this is mean I want to apply Image effect only to specific parts of bodies that you can see in the below Image:
0
votes
0answers
14 views

error CS0029: Cannot implicitly convert type 'visualizergameobjectscript' to 'visualizergameobjectscript[]' [closed]

hi I've used this code before, but now I get this error please help me i don't understand i want use visualizerobjects.length please please please error CS0029: Cannot implicitly convert type '...

1 2 3 4 5 234