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
1answer
36 views

How can I highlight ui image?

This is a screenshot showing two small images on the panel and I want that when the mouse cursor is over the image/s to highlight the current image the mouse is over. On the right the canvas settings ...
0
votes
0answers
18 views

How to make a point light cast shadows in realtime?

I have a solar system... The central star has a point light attached to it. However, objects don't cast shadows on each other... Planets are < 20 units from the star, so it's not a light falloff ...
0
votes
0answers
26 views

Unity 2D softbody with custom spring

I'm trying to make custom 2D softbody physics that can interact with other Unity colliders. My starting point was to implement a custom spring joint capable of connecting two entities ("particle&...
0
votes
1answer
49 views

Procedurally Generating Locked Doors

An upcoming goal of mine is to write a procedural generation algorithm for daggerfall-esque dungeons. However, I plan on including doors locked with specific keys and I would rather they be able to ...
0
votes
0answers
16 views

How to put the output of one game into another?

I want to add the screen of vrchat into a unity game environment so that I could play vrchat from a screen inside the unity environment. Is that possible? If not, why not?
0
votes
1answer
125 views

How to construct a propeller clock in Unity?

I am considering the possibility of using Unity to construct a propeller clock https://www.youtube.com/watch?v=-6JnAxTXApw . It's an array of LEDs on a PCB board connected to motor that spins at a ...
0
votes
0answers
12 views

Difference in light between Unity 5.5.2f1 and Unity 2019

The lighting is different between Unity 5.5.2f1 and Unity 2019. Please see the attached image. I dislike the way the lighting is done in the 2019 version. Both verions are installed out of the box, ...
0
votes
1answer
38 views

How to make GameObject copy position of other GameObject but react to physics perfectly?

First GO moves by transform.translate (necessary). Second GO needs to move by physics. If I do rb.MovePosition on the 2nd GO like: ...
0
votes
0answers
73 views

How to properly visualize Physics2D.CircleCast function in Unity?

I have a Physics2D.CircleCast() function in order to set true or false if the character is ...
0
votes
1answer
37 views

Why is Cinemachine Virtual Camera locking my camera position to the Origin?

I want the camera to follow a character as he moves around. So I did the following: Position the camera behind and slightly above the character. Add a Cinemachine Brain component to the camera. ...
0
votes
1answer
24 views

Issues with referencing experimental light class

I am trying to reference a Light2D component on a GameObject but I get the following error: ...
0
votes
0answers
36 views

Loading external file data into Scriptable Object in Unity

I've been at this for two long days, trying to figure out a way to handle saving and loading data for a mobile puzzle game I'm working on. The game has level packs and each level pack has multiple ...
0
votes
1answer
25 views

Disable and re-enable image tracking ARKit

Is there a way to disable and re-enable tracking for images in ARKit? From the older versions, this was the solution. But the newer versions have removed the ...
0
votes
0answers
23 views

How do you have rigged clothing animate with a base model?

How do you have rigged clothing animate with a base model? Or how can you coalesce multiple skinned mesh renderers or have them all be controlled by just one? Or, do you just have multiple animators ...
0
votes
1answer
45 views

How to restrict movement of Leap Motion hand object

I have a "Hand" GameObject controlled by a Leap Motion Controller. The Hand despite having RigidBody and Box Collider just seemingly moves with no regards to physics (transform translate ...
0
votes
1answer
55 views

How do I make night cycle like Dino Chrome?

I want to add a day/night system cycling to my runner game like the game Dino Chrome. The condition is when the score reaches 100 it will be ...
0
votes
0answers
31 views

Combining Rotation, Jump, and Crouch Animations with 2D Blend Tree

I have a 2D Freeform Blend Tree that I'm using to animate a character that can currently: Walk / Sprint Forward Walk / Sprint Backward Strafe / Sprint Strafe Left Strafe / Sprint Strafe Right Idle ...
28
votes
1answer
5k views

What is the standard practice for animating motion — move character or not move character?

I've downloaded a bunch of (free) 3d warriors with animations. I've noticed for about 25% of them, the 'run' animation physically moves the character forward in the z direction. For the other 75%, the ...
0
votes
3answers
64 views

Best practice for give properties to game objects

I'm not a noob in Unity although not the most experienced one, but during one of my project a noob question came to my mind! Strange but this never was an issue for me during my old projects... I ...
1
vote
1answer
50 views

How to Make GameObject move in Circular Motion

I've been trying to work an enemy that moves in a circular motion for my RPG game, but for some reason, whenever I press play the GameObject instantly goes hundreds of units in the X and Y coordinates....
0
votes
1answer
53 views

How to align the Polygon Collider 2D in Unity to match the position of Sprite?

How to align the Polygon Collider 2D in Unity to match the position of Sprite? I have a game object. It has a Sprite Renderer with an image. Now I add a Polygon Collider 2D component to the game ...
0
votes
1answer
71 views

Code is skipped after await call and returns to the calling method

I'm developing a roguelike game in Unity using the RogueSharp library. Currently I'm stuck on realizing the turn-based combat aspect of the game (inspired by this tutorial), which is made up of a ...
0
votes
1answer
46 views

How to detect if a 2D object overlaps any other 2D objects

I am programmatically placing 4 large dots on my 2D scene which already has some objects on it. If the new dot overlaps an existing object I want to destroy the existing object. All the objects have ...
0
votes
0answers
43 views

Unity 3D - Why does my button need to be clicked twice to work?

My goal is to go back and forth between a series of animations by clicking left and right arrow UI buttons. I wrote this C# script and the "next" button (which executes ...
1
vote
1answer
42 views

Why real time lightning fails to show shadows on terrain in Unity?

I'm using the TerrainTools unity package to create a simple 500x500 terrain, and placing a simple character that moves around, however, by default, the lightning is at real time mode, and the shadows ...
-1
votes
1answer
89 views

Legal to make and sell a game engine made with Unity3D?

does anyone know if it's legally sound to create a game engine within unity, build it as a standalone and sell it as a product? The engine would allow users to compile their own games through it. It ...
0
votes
0answers
22 views

Gauss-Krüger system to Unity Coordinate Conversion

In my recent project, I am getting an object file via a request to REST API and found that the OBJs (object file) are in Gauss-Kruger System. I want to know that how exactly I place the model as I ...
0
votes
1answer
39 views

Display musical symbol (unicode) in Text component not working?

I downloaded and specified to use a unicode font that supports musical symbols (Musica), but when I set the text value of the Text component to "𝄞" nothing is displayed? I tried using the ...
0
votes
2answers
27 views

Persisting Player Prefs On Build in Android

Can I ask for help/guide where I can build 2d game on android device includes the players prefs that I defined already, for example I have an "int" PlayerPrefs (PlayerPrefs.Getint ("...
4
votes
1answer
88 views

How can I play a YouTube video in Unity if given the YouTube URL link?

How can I play a YouTube video in Unity if given the YouTube URL link? I am using 2019.4.13 Is there a way to open webpages?
0
votes
1answer
65 views

Why do Dynamic Bones disconnect natural flow if they have ANY child gameobjects?

I've been having an issue for months now where if I have a dynamic bone chain that splits off in any way (ie. any of the chain's bones have child gameobjects), then the flow of the dynamic bone chain ...
0
votes
1answer
41 views

Why the scene name is never change when loading another scene?

I have two scenes. Main Menu and Game. When running the game it's starting with the Main Menu scene loaded. Then when making a new game the Main Menu scene is unloaded and the Game scene is loaded but ...
0
votes
0answers
29 views

Mirror Networking; How to Pass/Sync c# actions?

Since you can not pass actions as parameters to commands and rpc calls, how would you sync actions ? My main goal is to find an easy and generic way for objects to easily do actions from their local ...
0
votes
0answers
19 views

How can I load multiple scenes in background?

I want to queue the loading of multiple scenes in background and show all of them at the same time when all complete their loading. The only idea I have by reading the docs is to root all objects in ...
0
votes
2answers
30 views

How to Make Saving System Serializable

Hello I’ve been working on a save/load system for my RPG inventory, and I was wondering whether there was a way to make the script use Serialization instead of PlayerPrefs, because I want the player ...
0
votes
0answers
19 views

How can I integrate between the audio volumes settings in the main menu scene and the audio in the game scene?

I have two scenes only : Main Menu and Game In the Game scene I keep all the game data and gameplay stuff. In the Main Menu scene I have two sliders for volumes. One for the music and one for the sfx ...
0
votes
1answer
35 views

Is there any different between these 2 command? [closed]

I came across this question on stackoverflow https://stackoverflow.com/questions/17147553/int-num-new-int-what-happens-when-this-line-executes . Wonder if there is any difference for sprite and ...
0
votes
2answers
64 views

How to Make Saving System More Secure

I've been working on an saving system for my 2D RPG game, and I recently encountered an issue: my saving system uses PlayerPrefs, which I heard is supposed to be used for things such as settings. I've ...
0
votes
0answers
63 views

How to Implement One-Way Slopes?

I am working on a 2D platformer in Unity and am doing my own collision detection. I was previously using the method described in Sebastian Lague's popular YouTube tutorial, where you break your ...
0
votes
1answer
27 views

Rotate around moving object

I'm using the function Transform.RotateAround in order to make my player rotate around objects in my game, it's the main feature. The thing is, when I'm making my levels harder and make the objects (...
0
votes
1answer
30 views

Is it possible to render / project / flatten a 3d model onto a 2d plane in Unity?

If I have a 3d Object (character) could I use a renderer / shader / camera mode to essentially render the 3d object as a 2d sprite? Not looking for a full tutorial on this one, I realize its a large ...
0
votes
1answer
24 views

Save Script Doesn't Save Item Variables

I've been working on an RPG videogame, and I have been trying to implement a Save button into my game, which is supposed to save the player's itemAmount variable, which is in another script, called ...
0
votes
0answers
29 views

How does DrawProceduralIndirect use MeshTopology.Triangles?

I'm working on a voxel terrain generation system. Currently I'm running into issues using DrawProceduralIndirect. In the call, you are able to choose how the GPU should render the data you are passing....
0
votes
1answer
60 views

Why the enemy is flipping constantly when it collides with an obstacle?

I'm making a 2D platformer with Unity. I have an enemy patrol that shoots bullet. The enemy is working fine until it reaches to a point that should be turn around. (when collides with an obstacle or ...
0
votes
1answer
40 views

How to create a Decisecond(0.1second) function that can use in the code?

I create a circular object and pivot the minute and second pointer on the middle of the object as below. Below is the code I use. ...
0
votes
1answer
25 views

How to get the correct Input direction based on the camera angle to use in a rootmotion based third person controller

I move my character based on the rootmotion of their animation using a blend tree that uses 2D Freeform Cartesian input (Vertical, Horizontal) if Vertical = 1, the character moves forward based on the ...
1
vote
2answers
95 views

Unity 3D mirror, sync player spawn name

I am using Mirror for doing my little multi-player car racing project which I want to rename the game object automatically after the NetworkManager auto create the game object. Here is my ...
0
votes
1answer
64 views

2D isometric game with 3D prefabs

Is it possible to have a 2D isometric game in Unity, but also have 3D prefabs in the scene? Will that work or should I make the game in 3D with an isometric camera?
0
votes
0answers
16 views

How to save Unity assests to another drive?

My C:\ volume has almost no space left. Therefore I want to transfer all my assets to the volume E:/. And save my new assets automatically on the E:/ volume. I have searched very long in unity for ...
0
votes
1answer
26 views

How to Make UI Open and Close on Keypress

I've been working on a 2D RPG and have been trying to make a script that will open or close the public UI element that is selected in properties. I don't receive any errors, but I do receive a warning ...

1
4 5
6
7 8
274