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

Unity: Is there any alternative to facebook SDK for facebook ads attribution?

We have a Unity mobile game. We will be showing ads for it on facebook audience network. Now in the past when we tried this, the CPI started out good and then got terrible.. Facebook have told us that ...
0
votes
0answers
12 views

How to make an inventory in unity?

I need help for an example item 1 to go in slot for item 1. And item 2 to go in its own slot. I does not know how to do this because i am new. I have tried other inventory's but they does not work.
0
votes
0answers
8 views

How to make it so my cursor is not behind the UI?

My cursor keeps going behind the UI how to make it go above?
0
votes
1answer
6 views

How do I scale my spell target indicator to match the radius of OverlapSphere

I have a spell system in which some spells have an Area of Effect. To get the targets I use Physics.OverlapSphere. I show the player an indication of the spell's ...
0
votes
0answers
10 views

Blender animation's curled fingers are splayed-out when played in Unity

I have exported my character into Unity and all the animations came with it. At first, I thought I was good to go but then I made a jogging animation. In blender the hands are gripped like this: When ...
0
votes
0answers
12 views

I can't select my local package in Asset Store Tools

I made a local package and I'm trying to upload it to the AssetStore. -My package is stored in the [root]/Packages folder. -My Demo scene is stored in the [root]/Assets folder. When I try to upload my ...
0
votes
0answers
12 views

Inventory Bug in unity

Hello so I made an inventory in unity that when I collide with the item medkit it puts the medkit into my inventory. And there is a problem, the medkit appears in the inventory slot but also appears ...
1
vote
0answers
21 views

What's the best way to make a game launcher?

I am a new game dev, and would like to make a launcher for my games. All my games would be in ONE launcher, and it'd be similar to the Minecraft Launcher. I wanna do it for free too. The main reason I ...
-1
votes
0answers
15 views

How do I properly initialize UDP SDK?

When uploading my game to Unity Distribution Portal (UDP), I kept on receiving this message about sandbox testing: It seems your game was never tested in the UDP Sandbox environment, as no UDP ...
0
votes
1answer
17 views

How to move one Game unit with every key press?

I have a tile board set up with 500 x 500 pixels = 1 unit. I have code that will move the object over time. ...
0
votes
0answers
12 views

Why Jump Force changes automatically in the Inspector?

I'm making a 2D platformer with Unity. I want to support both keyboard and gamepad, so I use the new Input System and Player Input component with invoke unity events behaviour. My problem is that when ...
0
votes
0answers
18 views

Unity: Efficient way to get the average pixel color for a portion of the camera viewport

At it's core, the problem I'm trying to solve is this: I have a camera (not main) that I would like to project to a 2 pixel RenderTexture. I would like the first ...
0
votes
1answer
17 views
0
votes
2answers
29 views

Unity Application.Quit() doesn't work

In the update, I have set up a counter so that after 140 frames, Unity will quit the game. But this quit command doesn't quit and it just continues to play the game. What am I doing wrong? I am using ...
0
votes
1answer
12 views

Crate destroy when in trigger and button E pressed

There are no errors in the console but I feel like im doing something wrong. The crate is not destroying when I click E. ...
0
votes
1answer
8 views

Unity 2020.1.8f1 cannot build xcode project for iOS

We recently updated a project to Unity 2020.1.8f1 But it will not build the xcode project for iOS because of missing plist key value pairs. This is really weird cus, before, I would build the xcode ...
0
votes
1answer
11 views

OnTriggerEnter error: The message parameter has to be of type: Collider

I have a crate and I want to make it so if you are in the trigger of the crate a UI appears and says "Click E to loot". I have the UI setup but the script is not working. Here is my script ...
0
votes
0answers
22 views

Data structure for objects in a galaxy of star systems

I'm having some difficulty coming up with the appropriate data structure to use for a game. I'm aiming for a galaxy view with tens of thousands of visitable star systems. Structure Hierarchically, ...
0
votes
0answers
13 views

Preventing player units from pushing enemies, and vice versa

I am using a Rigidbody2D to handle collision between different units. When the player's units encounter one another, they push each other because of the rigid body physics (and that's good for me). ...
0
votes
0answers
8 views

Unity - Adressable - Build size is bigger than expected

After fixing all duplicates using Analyze tool, the apk file still bigger than before i start using Addressable. All my bundle is local and use LZ4 compression. Here what i have done: Fix all ...
0
votes
1answer
19 views

For my Heat I want to change the players speed but its not working

I have a heat bar for my player and I want it so if the player is at 40 heat or under the players speed slows. This is my script. The problem is when the player gets to under 40 heat the speed is not ...
1
vote
1answer
20 views

How does Unity pick which sprite atlas to load?

I plan to use sprite atlases for my 2D game. All my animation is sprite animation so I'm going to use sprite atlases for my characters' sprites. My question is, if I put the same sprite in two ...
0
votes
1answer
23 views

How can I blend the center color of a 2 side gradient so it isn't as harsh looking in Unity Shader Graph?

I am using the gradient node in Unity's Shader Graph. It is 2 sided, with it being black-white-black. The white is quite harsh, it makes a line that stands out. I will be using this as a mask, and ...
0
votes
0answers
4 views

photon unity why error GO:Networking Manager appears when trying to make the scene not restart / reload when another clients join the room

photon unity why error Debug.LogError("Illegal view ID:" + view.viewID + " method: " + methodName + " GO:" + view.gameObject.name); appear the code ...
0
votes
1answer
41 views

Heat bar that always goes down but when near fire it goes up

For the fire I have this script on it. ...
0
votes
0answers
17 views

2D/3D Soft body physics in Unity

I want to implement soft bodies in my game similar to this link. I tried using this Soft body simulation plugin but it has the following problems: Only works with box colliders. Doesn’t work with ...
0
votes
0answers
15 views

Every X months Visual Studio Code says: 'UI' does not exist in the namespace 'UnityEngine'

I've tried countless fixes in the last 1,5 year, and I still don't know what is the absolute fix for this. Or after fixing it, why it got fixed. Usually this happens after a Unity update, or after ...
-1
votes
2answers
41 views

Implementing a healing trigger zone

I want to add a game object that when you are in its trigger it heals you. How can I do that?
0
votes
0answers
20 views

Why won't PNGs load successfully to game from server?

I'm working on a game which involves loading pictures from a server and rendering them as sprites. The images are stored as PNGs and open normally from on the server. I get no errors when downloading. ...
0
votes
1answer
37 views

How is the value of transform.position updated and accessed between different private methods?

I followed this YouTube video but I'm still confused about how the code actually retrieves the value of transform.position. I can understand the ...
0
votes
0answers
25 views

Is UNITY 5.6 still suitable to creating games? [closed]

In short currently I have Unity 2017 4.36f1 installed on my Linux machine (-Core i3 2120 with 2GB RAM-) , but it's super slow and I could not integrate Monodevelop ...
2
votes
0answers
27 views

How to stop my particle systems from being frustum culled

Please could somebody advise on whether it is possible to control the culling of particle systems in Unity? I am referring to the entire system, not individual particles. In my use-case, I am ...
0
votes
1answer
12 views

How to mitigate when applying horizontal force to a rigidbody seems to overpower gravity?

I've started testing movement using the example code in this answer of making a body accelerate to a target velocity ...
0
votes
1answer
36 views

How to hide a sprite on trigger when the player enters the trigger zone?

I am making a roof for my 2D top down survival game, and I want to make it so that the roof disappears when the player enters the building, and re-appears when they leave. Here is the code I've ...
1
vote
1answer
22 views

Unity3d Rigidbody movement along slope slowdown

I have a Rigidbody character controller (Unity, C#) which I'm trying to make work seamlessly when walking on sloped ground. I've got it working fine walking up and down a slope by changing the forward ...
1
vote
0answers
18 views

Unity ads - not showing on phone

I'm trying to implement unity rewarded ads. They work fine in the editor. However when I run it on my phone, the ads don't show up. Nothing happens when I click on the show ads button. I have a very ...
1
vote
1answer
23 views

Programmatically extract textures from an arbitrary material

How do you programmatically extract the textures and other properties of an arbitrary Unity material? Ideally runtime - I'm trying to upload the data to the server for remote access.
0
votes
1answer
18 views

How do I keep vertex position when changing material?

I've created 2 shaders using shader graph which I'm applying to a sphere to simulate a ball of water/ice. The water shader distorts the shape of the sphere over time to look like it's flowing a bit. ...
0
votes
1answer
13 views

Divide two quaternions evenly by a scalar to get a smooth rotation in-between

How do you divide two quaternions - say A and B - evenly by a scalar, to calculate the rotations between them to render a ...
0
votes
0answers
15 views

Mesh filter component is removed from prefab [Unity]

I am trying to procedurally generate a city with cubes. I generate the cubes' location, size and textures randomly with an external program and I save to a txt. I created a script in C# that loads ...
0
votes
1answer
39 views

What are the dangers of setting rigidbody velocity directly for movement and what are the alternatives

I'm playing around with Unity, trying to make a neat 3rd person platformer movement system using rigidbodies so that I may in the future implement things like pushing boxes/physics objects, grappling ...
0
votes
0answers
14 views

Shader map in unity

I'd created a shader graph in shader editor of unity. And I applied it to new material also. When I imported a .fbx object(box-like object and vertical slab like object) and applied that material in ...
0
votes
1answer
29 views

Unity, interior poly always missing in clothing

I've modeled interior polygons but for some reason they do not show up in Unity. I've tried changing import settings for normals to both calculate and import... How do you have a tshirt's interior ...
0
votes
2answers
39 views

Is using events a good way to have the option to return out of a method or alter its normal execution?

Let's say I have a script that calls a method frequently, and when doing so wants to allow other objects to know about it and potentially alter what happens in that method. This is fairly simple to do ...
-1
votes
1answer
38 views

Why is my object not destroyed when the HP is reduced?

I tried to write a script that declares an object to have hp 90 initially and every time you click on the object, it turns red and will reduce the hp by 10. When the hp is lower than 10, it should ...
0
votes
0answers
15 views

unity spriterenderer scale to fit screen portion

let me explain what i have. a camera that render only a sprite ( sprite renderer) and what i'm looking for is to scale that sprite renderer to fit a screen portion (not the entire screen) for example ...
0
votes
1answer
56 views

Camera animation stutters on first launch

The camera stutter for a fraction of a second when animating a camera from one position to another position. This issue only happens when the game is launched for the first time after installation. ...
0
votes
0answers
7 views

Material is missing after build with Unity Cloud

when I tried to build with unity cloud, materials aren't in the build. there is no specific shader I just used the default URP material. after a while, I found the problem. when I import new models I ...
0
votes
0answers
8 views

How to change frames for the same object

Lets say I have four frames A,B,C and D. In idle condition, I want the game object to repeatedly running on frame A and B . When using the method OnMouseDown, the same object change to frame C and D ...
0
votes
0answers
23 views

How do I fix missing anti-aliasing in the Unity scene view and game?

Both the editor and the game seem to lack anti-aliasing even though quality is set to Ultra. I chose the "3D" project template when I created the project, so I am using the build-in render ...

1
2 3 4 5
261