Category "unity3d"

Instaniate objects on Raycast

So, I want the code to instantiate clone objects onto the new Raycast points if the int i<Random.Range I have a code that allows to position an object onto t

Unity fill array Gameobject from another script

I have been follow video from youtube for creating custom tabs. But in condition Iam using dynamic panel, and then in script has to fill panel to array Gameobje

Compare a string in if()

I'm trying to compare a string in an if(string = ""), but it's apparently not the same the string is "thisColor", it is defined by the content of a file. I trie

Automatic pressing of the key on the keyboard when the button on the interface is pressed

When the user presses the button on the interface, I want the 1 button to be pressed automatically, how can I do that?

Score updating automatically without any prior collisions

I am a newbie to C# and am currently trying to create a scoring system for Ruby's Tutorial. So I am trying to have the score update each time Ruby fixes a robot

WaitForSecondsRealtime not working as expected

So decided to give game dev a try, picked up unity,Now I decided to create a simple ping pong game. My game has Bat.cs class, ball.cs, and GameHandler.cs. The G

cppflow model loading hangs unity

I'm trying to load a tensorflow graph model using cppflow in c++. I am able to load the model when I define the model loading globally in a standalone applicait

How to use a same Input action to trigger different events when used on different objects in UNITY?

I'm facing a small problem with the unity's New Input system. I'm trying to build a VR game that has floating buttons in the scene. I have used a gaze reticle f

APP crashing on android devices, game built with unity editor 2020.3.33 LTS

I am working on a project from last 2 years. I started working with 2019.4. Few months ago my PC broke down because of heat so i had to take a new one. I instal

How do I check if a tree object is really close to another in unity?

I have been making a survival game in unity and I have generated the trees with the below function The GenerateTree function void GenerateTree(int x, int y)

Unity Card Game Change Player Perspective

I am new to C# and Unity.. I am trying to make a simple trading card game (tcg/ccg). For this first phase, I would like to make it to be played locally eg. own-

Rotate around multiple axis of a GameObject

I am creating a measure app for iOS using Unity. I was able to measure distance between 2 points and show it in a GameObject. This is what I have achieved so fa

What is the difference between using AsyncOperation and not using AsyncOperation to show progress in UnityWebRequest?

I wrote a script that simply downloads a text file using UnityWebRequest. (I set the text size to 50 MB to see meaningful progress.) private IEnumerator GetRequ

Unity Cant Connect to packages.unity.com

I am getting this error when i Try to Open any Project. I am not using any proxy servers. And my windows firewall is OFF. Does any1 knows how to fix this.Error

streamWriter does not apply changes until I restart my game

I'm making a game in Unity with an editor level that writes the level data in a .txt My problem is that changes to the file are not applying correctly because I

How to update Url used by UnityWebRequest to InputField?

I want the user to be able to change the ID of the link, which is why I used InputField to get their input. Unfortunately, I can't seem to figure out, how to ma

Measure compute shader execution time in Unity

Is there a way to measure the execution time of a given compute shader in Unity ? I thought to "artificialy" add a compute buffer in this compute shader and mak

Access to a PhotonView component

I need to access the INT of this component. I am using a Photon View, and I want to set a conditional if a GameObject has that "INT" value.This is the Component

Gitlab Runner to open GUI on windows (Shell runner)

I would need a GitLab Runner to open a program, in my case Unity3D and to start running a scene. For this I selected a shell runner to run a batch script. The f

Suggestion on NavMesh 2D generation at runtime with infinite procedural generation [duplicate]

Let me start off by saying I began my jounrey of programming within the last year and Unity about the same time. I have come a long way since