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
7 views

Trying to define a custom Composite to the new Unity Input System but failing somewhere

I'm following the "Touch Samples" sample project that comes with the "input system" package. In one of the sample scene, there is a script that defines a custom composite Binding (for example the 2D ...
0
votes
0answers
9 views

Can I use a 13" MacBook Pro with Intel Iris Plus Graphics (which is integrated graphics) for Unity 3D game development? [closed]

I'm coding a 3D game in Unity and I'm wondering whether a 13" MacBook Pro with integrated graphics (Intel Iris Plus Graphics to be exact) will run smoothly. I'm considered with the fact that it uses ...
0
votes
1answer
16 views

Is an iOS development license with Unity free?

I'm coding in Unity Personal and I'm going to try to put my game onto the App Store (through the Unity --> XCode --> App Store process). In the past, Unity has charged money to get a iOS license for ...
0
votes
0answers
6 views

Animation created via script does not play in Unity

I have created an empty GameObject and assigned it a script: Main.cs. ...
0
votes
1answer
11 views

How to sample from six cubemap images for a skybox in Shader Graph?

I'm trying to update a skybox shader to URP and reimplement it in Shader Graph. The shader code itself is pretty straightforward, but I don't know enough about Shader Graph yet to set up the basic ...
0
votes
1answer
6 views

Reduce emission of sphere object with HDRP material

I have a material which I have assigned to be used on a sphere game object which acts as stars. This is what the settings are set to: And this is what the Game View looks like: I have also tried ...
0
votes
0answers
8 views

Unity animator causing lights to turn on sluggishly?

I've got lights on a vehicle that I am controlling using several animations. I have an animator with multiple layers and everything works properly. However, I am having an issue where the lights take ...
0
votes
0answers
6 views

For Blender+Unity users— Would Blender's “UV Project Modifier” work in Unity?

So, say in Blender you have a Cube that you put a "UV Project Modifier" on, with an Empty (controlled by a Bone) as the Projector. In Blender when you move the Bone, the UV moves on the cube. Great!​ ...
0
votes
0answers
5 views

Start C# script when imagetarget is detected for Vuforia+Unity

I have a script like given below which implements spirral motion of a sphere to the center (0,0,0). I want the script to start only when the image target is detected, however in my project it starts ...
0
votes
0answers
8 views

Rotating projectile in direction it is moving

I am using a parabola curve to launch my arrows: ...
0
votes
1answer
14 views

Unity toggleable shader property misbehaves when set by code?

I've added a toggle to my shader: [Toggle(ENABLE_COLOR_BLEND)] _EnableColorBlend ("Enable Color Blend", Int) = 0 In the Subshader: ...
0
votes
0answers
7 views

Photon Camera Conflicts

I'm new on this forum as I'm new on unity ^^ I hope I'm not writing this thread in the wrong place. So, I'm trying to get this 3rd person multiplayer Tank with RTC controller game to work, where you ...
0
votes
0answers
12 views

Display/hide image with zoom in/out

After spending a while looking through the forums, I haven't been able to find a thread that deals with transforms on an image. Essentially, what I'm trying to do is display and hide an image at the ...
0
votes
0answers
8 views

Coroutine problem, I don't know what's happening [duplicate]

Calling function. ...
0
votes
0answers
9 views

Unity button tint

unity button tint allows me to give a few colors to different modes of the button: normal, highlighted, pressed, and selected colors. I want to fully disable the "selected" mode color, since whenever ...
0
votes
0answers
9 views

Artifacts on crosshair in game view with FXAA

I have a transparent grid texture that I am displaying on a quad using the URP's built in unlit/Transparent Shader. The intersections render as desired in the scene view, but have artifacting in the ...
0
votes
0answers
10 views

Need to generate seamless gradient noise texture for water Shader [duplicate]

I need to generate something like this for my water Shader, because on fly calculations are to expensive for mobile (https://docs.unity3d.com/Packages/com.unity.shadergraph@6.9/manual/Gradient-Noise-...
0
votes
1answer
28 views

2D player controller moves to the left, but not to the right

I wrote a C# script to control a 2D player, but the script is not fully working. When I press the right arrow/d key to move the player is not moving in the right direction, but I have done the same ...
0
votes
1answer
31 views

Touch goes through UI objects on mobile

I know this question has been asked a lot of times, and I have tried the solutions that were provided and I still have no valuable result, so I thought...maybe a new set of eyes could help. I have a ...
0
votes
0answers
16 views

How to build a hidden 3D snapping grid effect?

Looking to build a 3D grid similar to the image below taken from Google Blocks. Seems like it consists of these main components: A set of spheres that can go transparent. A stencil that follows the ...
0
votes
1answer
15 views

Move an object with other objects connected (via joints) the right way

What is the best way to move an object with other objects connected to it via joints? Let's assume we have the following setup: A player that can move on the x and the z axis "Normally configured" ...
0
votes
0answers
10 views

Can I set multiple animations to run at the same time with Unity's animator (some animated properties would overlap)

I am creating a vehicle in Unity and I am currently trying to set up lights for it. I need to be able to press one button to turn on the parking lights. But the parking lights share the same bulb as ...
0
votes
0answers
19 views

Per-object screen space uv issue

I am currently trying to sample a texture in screen space. This works well : ...
0
votes
1answer
15 views

How to use multiple UV maps with ShaderLab (Unity)

I want to layer one texture over top of another on the same mesh, but map the textures to different UV maps. The example for Detail Maps in the Surface Shader Examples looks almost identical to what ...
0
votes
0answers
23 views

How to speed up script compilation?

Is there a way to speed up script compile time when I change something in VS then click on Unity? It takes 15 seconds. Is this normal?
0
votes
0answers
15 views

Coroutine different behaviour when called from another script

I am quite new with game dev, specially with unity. In order to understand how it works, I decided to start small with a pong game. I have a Ball script, which in the Update() method move the ball ...
0
votes
1answer
17 views

Getting array of points shaping curve from 2 vector3 points

What I want is to get path for DoTween method DoPath(), which as a parameter expects array of vectors shaping the direction of the path. I googled some stuff and found out nothing. Just think bezier ...
0
votes
1answer
72 views

How to pass an argument with ref keyword to a local funtion/ how to work around it?

Unity 2019.3 I am writing a few extension methods to make my life a little bit easier, but this one is bogging me down. I am loading stuff with Unity's Addressable system, and I would like use it by ...
0
votes
0answers
10 views

Have a particle system's particles obey transparency sort mode individually

Background In a top-down game, I have particles that spawn animated textures. I have my 2D renderer settings set-up so that it orders sprites based on their position on th Y-axis via "Transparency ...
0
votes
1answer
43 views

Trying to use an overlapping shader for 2D sprites but sprite wont show its shape

So Im trying to use this shader I had from a while ago to implement shadows in a 2D top down game. In order to show clouds on top of the game. At the moment, Sprites dont overlap which is good, but ...
0
votes
1answer
23 views

How to reset a gameobject to it's prefab condition?

I have a GameObject with a ragdoll in it. Gameobject comes from a prefab which is pooled. So whenever the enemy is killed it's disabled then enabled when spawn. ...
0
votes
2answers
38 views

How can I debug a GameObject's rotation?

I have a model of a dragon, with an animation of it flying. When I play the animation in the Animator's preview, the dragon flies in a straight line, but when I run it in-game, it flies around in ...
0
votes
1answer
14 views

I installed Linux Build Support, but I need an archive to build, how can I get this?

I`m building a game for Mac, Windows and Linux, I builded the Windows and Mac game, but in Linux, says that need a x86_64 archive, like the image shows, what do I do?
1
vote
0answers
18 views

How To Place Object On Ground Within Radius?

I'm using Unity and I'm building an object placement system where you'll be able to position objects around the player. I'd like to place objects flush with the ground, parallel to world up, even on ...
0
votes
0answers
10 views

Refactoring out asynchronous webrequests to an interface

I have a Unity project with UnityWebRequest calls in it. They are all working correctly, but I'd like to refactor them out (they are implemented pretty badly at the ...
0
votes
0answers
16 views

Check if Animation State exists before playing it

In Legacy Animation Component of Unity Engine, I want to check if a specific Animation Clip exists in Animation Componenet, or not. ...
0
votes
1answer
16 views

Replacing UI GameObjects with Scriptable Object script

In my game I'm trying to make a series of mock web pages. To make it easier, I thought I'd make all the webpage UI into Scriptable Objects and have a game manager script determining what content to ...
0
votes
1answer
15 views

How can I render 3D objects and particle systems in front of a Screen Space - Overlay Camera?

I am using Unity 2019 with the Universal Render Pipeline. I have a canvas that is using Screen Space - Overlay render mode. I cannot change my render mode to Screen Space - Camera, because it is not ...
0
votes
1answer
13 views

Touch input not working well for mobile game made with Unity 2D

I made a simple game in unity where the user taps their phone screen and the player jumps up. When I test it on my phone (not sure if this matters but it's a Samsung s9+), I tap the screen and usually ...
0
votes
0answers
18 views

How to rotate a rigidbody with a Pid controller

I would like someone to describe me how to use a PID controller to rotate a rigidbody with AddTorque to a specific position. (like a spacecraft that rotates the Y axis of rotation towards Camera....
0
votes
1answer
34 views

Component Based Spells/Abilities

This has been a bit of a long time coming challenge for me, if you look back at previous questions for Component based spells you are likely to find my old questions, given that they are 1 + 2 years ...
0
votes
0answers
20 views

Singleton GameManager - instance loses refefrences after scene load

I've been looking around sample of a singleton gamemanager, like this from Unity's own page ...
0
votes
1answer
24 views

List<T>.Contains(T) Method seems to return true for substrings? I don't want that

so I need to check a List of strings belonging to an AudioManager script, from another script, to see if it contains a specific string. Accessing that List wasn't hard. What's surprising me is that ...
0
votes
1answer
18 views

Change item rotation axis in inventory item visualization

I'm learning unity and i'm trying now make an inventory, i made a simple interface, and now i'm trying to make a item visualization. I look for some codes from web and i found this one: ...
0
votes
1answer
29 views

GameObject.Find() finds objects in the old scene

I'm trying to create a simple scene transition. On entering a collider, there is a black canvas that's slowly faded in over the duration of 3 seconds. Then, a new scene is loaded, and the scene slowly ...
0
votes
0answers
21 views

Multiplayer game server headerless (Unreal/Unity) vs Custom Maps

I've been pondering about different approaches that a multiplayer game server can be managed and programmed. For instance some of the big engines like UE4 & Unity provide a 'build' flag that can ...
0
votes
2answers
11 views

Instantiated prefabs dont trigger ontriggerEnter while prefabs created not on runtime, do

I am new to unity and trying to make a bouble trouble game. I have enemy prefabs with BoxCollider with is triggered checked. I also have a shooting script. when I am trying to instantiate the enemy ...
0
votes
1answer
95 views

Why don't we assign a class for each gameobject type in unity?

I used to create games from scratch with C++. There, people would create a "class Bullet", and add functionality to that class so that we can instantiate objects of class Bullet at runtime. However, ...
0
votes
0answers
9 views

Unity: How to import a SINGLE animation for an existing character?

The Holy Grail of animation solutions (for me). Right now, if I want to append a new animation for an existing character, I don't immediately know what to do. I assume I need to bring the same FBX ...
0
votes
0answers
10 views

Converting 3D to 2D (A* pathfinding)

I am following Sebastian Lague's A* pathfinding series, and I am on the episode where he explains path smoothing: https://www.youtube.com/watch?v=NjQjl-ZBXoY&list=...

1
2 3 4 5
247