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

Change environment saturation based on exposure to "light source" - Unity

I am trying to make a game where particular "light sources" bring color to an otherwise grey world. I am extremely new to the world of custom graphics processing. I assume it will require a ...
user avatar
  • 1
0 votes
0 answers
8 views

Unity World Space Canvas Interaction

In Unity, what non-XR options are available for interacting with a world-space Canvas. The XR options are well documented, but I have not been able to find anything similar anywhere else.
user avatar
0 votes
1 answer
32 views

How to determine whether multiple crafting requirements are met?

I'm currently working on a crafting system - this systems works fine when the desired item has only one requirement. If there is more then one requirement the system brakes. Here's a short description ...
user avatar
-2 votes
1 answer
27 views

Is it possible to create map files for a 3D game using AutoCAD and 3ds Max?

Is it possible to make maps for games using AutoCAD and 3ds Max? I am studying architecture and I am making pretty good making 3D objects. I would like to make them for games, but I don't know what ...
user avatar
0 votes
0 answers
25 views

How do I make a shader that simulates acrylic paint being smeared on a surface?

I know something about shaders, I have written some very basic shaders. This is the most advanced shader I have written so far. It's been several days since I conceived the idea of trying to recreate ...
user avatar
0 votes
0 answers
20 views

Error on pass two values in return Unity C# [closed]

I'm trying to pass two values in a return but I get an error, one would just inform the winning player and another would be a method called StartCloudUpdatePlayerStats() which is also in the complete ...
user avatar
  • 101
0 votes
0 answers
48 views

How do i host my Unity3D WebGL game build for developement?

I started up a simple Node.js HTTP server using the video link below Then I directed the HTTP server to respond with the index.html file from the Unity3D build folder. When I start the server and go ...
user avatar
0 votes
0 answers
31 views

unity IAP scripting not initialized on android

I am trying to add a In App Purchase in unity for android but when I push the button that launch the code I get this error: BuyProductID FAIL. Not initialized. There is no more error on logcat console....
user avatar
1 vote
1 answer
35 views

How can I import an AvatarCLIP animation into Unity?

I have an .fbx file containing a an avatar that is standing still. I followed the steps in this GitHub repository section "Motion Generation" to create an animation for that avatar. What I ...
user avatar
  • 111
0 votes
1 answer
50 views

Most efficient way to load assets based on player settings?

I would like to know some better coding patterns to load assets based on player settings. Say that users are allowed to select 1 of many skins for a weapon. Now when I load that weapon object, I want ...
user avatar
1 vote
0 answers
18 views

How to get vertices array from UIElements Label class (using reflection)?

I am trying to access the per letter vertices array in the UIElements (UI Toolkit) Label Unity class. Background A Label of this type can be created for example with: ...
user avatar
  • 237
0 votes
1 answer
49 views

How to lerp correctly between two unlimited rotations

Hi i have a start point and end point which i use to create some point between, this points are calculated with a blending rotation between point A rotation to point B rotation. I use Mathf.LerpAngel ...
user avatar
0 votes
0 answers
34 views

How do I recreate this tree swaying animation?

I really like this effect that I saw in a kid's mobile game. https://gfycat.com/thunderousimpishblacknorwegianelkhound I'm trying to create this effect in my game. The trees seem to deform with every ...
user avatar
0 votes
0 answers
35 views

Best practices for Unity development [closed]

I've been having a tough time trying to find a comprehensive guide for properly building a Unity game. I've been working on a game for a while now and the Player and Game Manager classes in particular ...
user avatar
  • 89
1 vote
1 answer
42 views

Seamless random morphing hex tiles' vertices in Unity3D?

I have a hex based, fully flat tilemap the tiles' mesh currently isn't generated, but a static mesh file containing 6 vertices, UV mapping, etc. Then I saw this picture on Unity Answers: I'd like ...
user avatar
  • 649
0 votes
0 answers
30 views

I cant figure out where is this garbage coming from

So I am using URP in unity. I tried disabling incremental GC from Player Settings and this is still there. Other packages I am using are Cinemachine and Device Simulator.
user avatar
  • 7
0 votes
1 answer
34 views

Make Inventory that receives Purchased Items from the Shop system

I want to make Items purchased from my game shop like decoration to go to Inventory after I purchase them. I have created a shop system with purchase buttons and stuff but I don't know how to make ...
user avatar
0 votes
0 answers
21 views

Set DisplayName in textfield problems Object reference not set to an instance of an object [duplicate]

Folks. I'm trying to set the DisplayName default value directly from the API, the debug log correctly informs the username. But when I believe that it should fill ...
user avatar
  • 101
0 votes
0 answers
12 views

How do I git lfs track a very large SDK in a Unity project

I get: ...
user avatar
0 votes
0 answers
19 views

movementBranch does not exist in current context [closed]

...
user avatar
0 votes
0 answers
19 views

Unity: JsonUtility.ToJson() not serializing everything

I'm trying to serialize the state of play of my Unity game (Unity 2021.3.7f1) to JSON using UnityEngine.JsonUtility.ToJson, so that I can persist this state to disk ...
user avatar
  • 144
0 votes
0 answers
37 views

Making Multiple NavMesh agents go to different destinations in unity

I am trying to make an Rts game in unity and am trying to make it so that units can go to different destinations, I have a selection system that deactivates their Navmesh agents and the script that ...
user avatar
0 votes
0 answers
33 views

How to make a moving joystick with Unity "input system"?

I can move the character with input system. (Left Stick) My question is that this "joystick" is fixed on the screen. What I want is that when I touch any part of the screen, it appears there ...
user avatar
  • 13
1 vote
0 answers
34 views

Unity URP Water Shader working in Scene View, in the Preview Window... but all white in Game View?

I downloaded an URP compatible Water Shader from the asset store. First I tried it with 2022.1 but for some reason while in Scene View it looked great, in Game View it's all white. (Sometimes a watery ...
user avatar
  • 649
0 votes
1 answer
43 views

better way to store user purchase information?

I use Player Prefs to store the user purchase information in Android and iOS, but I'm not sure it's safe enough. What is the right or better way to store user purchase information? ...
user avatar
2 votes
1 answer
221 views

How to programmatically activate the Glow option in a Text Mesh Pro font

I can activate the Glow setting for a Font in Text Mesh Pro by checking the Glow checkbox: Is there a way I can programmatically do the same thing? I looked in the corresponding shader, and found ...
user avatar
  • 217
0 votes
0 answers
45 views

How do I switch between swipe and pan in Unity in one touch?

I am trying to create a gesture handler that can detect both swipes/pans - within one touch - in Unity. I should be able, within one touch event, to pan slowly to the left or right. During the same ...
user avatar
0 votes
1 answer
82 views

How can I make a hole in ground to fall into an other terrain [closed]

I am new to game development, and I need to make a game where the player digs a hole in the ground anywhere on the terrain like this game but there will be no limit the player will dig until he fell ...
user avatar
  • 1
0 votes
1 answer
27 views

I have set my animation to play when the player enters a set area a through script but it's not playing

I have set my animation to play through a script I made but it's not playing. I have all the references correct my spelling is correct as well. My code: ...
user avatar
  • 13
1 vote
0 answers
29 views

How to distinguish pointer up inside button vs drag-out

I am making a unity mobile game, I have a simple scene and a canvas with a few buttons and these buttons have scripts that detect if the button was pressed and released. Here is the code for doing ...
user avatar
  • 11
0 votes
1 answer
45 views

How does one detect a button release with Unity's new input system?

I'm attempting to upgrade my technique from the classic input methods to the new Input System for Unity; but I'm finding it a little sprawling and unhelpful so far. I know that if I have an action, ...
user avatar
0 votes
1 answer
29 views

Why does setting blend mode in Unity shader graph to Multiply create artifacts on sprite?

I want my sprite to use a blend mode based on the background (like in Adobe programs) so I set shader graph blend mode to Multiply. The blend works, but I get strange artifacts on my sprite. In this ...
user avatar
  • 129
2 votes
1 answer
31 views

Getting a list of all supported characters in a Font

I am attempting to create my own font fallback system for multilanguage support using UI Toolkit in Unity (Label class). This UI system does not intrinsically support fallback fonts. I have some ...
user avatar
  • 237
0 votes
0 answers
13 views

How to find the vertices most rigidly skinned to each bone?

I'm trying to reimplement this paper in Unity: https://theorangeduck.com/media/uploads/other_stuff/DReCon.pdf To setup the character avatar, the authors write: "Our character’s rigid body ...
user avatar
  • 1
0 votes
0 answers
39 views

Cancel a task only if it gets re-run

I have a slow proc gen function that runs when a user changes any parameters. If a parameter is changed before it has completed, I want it to cancel the task and start a new one. Currently I have it ...
user avatar
0 votes
1 answer
19 views

Where to trigger load from PlayerPrefs for data in a static class?

I have this save system that saves screenshots in consecutively-numbered files. I store the number of the last number used in PlayerPrefs, so that the next save ...
user avatar
0 votes
0 answers
21 views

How to authenticate request for player info using Google Play Services?

I use this line of code to get the user server access token in Unity: PlayGamesPlatform.Instance.RequestServerSideAccess(true, Callback); the callback responds ...
user avatar
  • 2,458
0 votes
0 answers
32 views

Viewing Wrapper/Container Classes from a Scriptable Object inside of the Unity Inspector

I'm making a word game to teach kids how to read and promote literacy. As part of that, I made a Scriptable Object that's basically a bunch of nested Lists, until it reaches the bottom node: ...
user avatar
  • 217
0 votes
0 answers
21 views

Plastic SCM window shows up barely visible and white

I've recently started using Plastic to sync files between my laptop and computer. Everything has made sense until now, but I opened it today and the plastic window was white, unlike the normal grey of ...
user avatar
0 votes
1 answer
16 views

Hiding objects from the player when working with RenderTextures

I am currently working on a game that has monitors showing the player different elements such as texts, images and numbers. My plan for this is to use Unity's ...
user avatar
0 votes
0 answers
26 views

Creating a projection Line with Parabola effect

friends. I'm trying to achieve a effect that where when the enemy/player get close to the player/enemy a parabola is formed in direction to the enemy/player to represent that is target in that moment. ...
user avatar
0 votes
2 answers
51 views

What should I be aware if I use [SerializeField] to pass GameObjects?

In Unity, I am trying to disable a Game Object in the scene by passing it through SerializeField. I have read elsewhere that this was previously not possible and is inadvisable, but I seem to be able ...
user avatar
0 votes
0 answers
9 views

Unity VR Detect if object is being held

I am using the XR Interaction Manager in Unity VR. The player can hold objects when pressing the trigger button of the hands (the interactable object has the component XR Grab Interactable). I want to ...
user avatar
  • 137
0 votes
2 answers
14 views

Canvas element active by default even though it's set to inactive in the script

The pause menu is getting shown by default when I click the play button, even though the GameIsPaused boolean is set to false. I don't know if it's the fault of how ...
user avatar
0 votes
1 answer
25 views

Using native SDK's inside Unity

First of all, I would like to point out that I am not a Unity developer. Most of the programming is related to web programming, but my friends and I set out to create an MVP of one product inside ...
user avatar
  • 101
0 votes
2 answers
32 views

Flipping a sprite with SpriteRenderer.flipx when the pivot is not centered

My sprite has a pivot in the bottom left so that it snaps on the grid. Flipping the sprite with flipX almost works, but the sprite also shifts one quare to the left/right when flipping. Gif of ...
user avatar
0 votes
0 answers
26 views

How to make Items spawn when you combine two other items together

My Idea is to have Two Herbs from the Player's Inventory and give them particular Item IDs like: 2 Combined Herbs give you a Potion of Health. 2 different Herb combinations give you a Potion of ...
user avatar
0 votes
1 answer
38 views

How to count polygons in Unity?

The Rendering Stats (profiler) only shows tris and verts. But everyone keeps using the term polygon which doesn't exist in Unity's terminology. How can I get the polycount of my Unity scene?
user avatar
0 votes
0 answers
40 views

Blurry text in low resolution game using TMP

This could be a simple solution that my mind cant grab right now. So, I am working on a game with a specific resolution which is 64x64. I using unity latest version. as for my text I am using TMP. My ...
user avatar
  • 1
0 votes
1 answer
40 views

How to create a slideshow of Images in 2D game without pressing buttons

I want to make a slide of images that change automatically by a timer without pressing any button for example every 5 seconds the image changes to another one. I have a script but it only changes them ...
user avatar

1
2 3 4 5
307