Category "unity3d"

Unity3d - Trying to change color of Material via C#

I've looked all over for a solution for this and it seems simple enough but I don't understand why I can't change the property of one of the materials located o

Unity: Runtime-Terrain-Editor How to raise a circle

I'm trying to create a terrain editor, that works on runtime. At this point I can raise a square but have problems to raise a circle-shape. I saw this post and

What's the difference between Unity LTS and Unity latest version?

As of this writing Unity has a version called Unity LTS 2017.4.12f1 and the latest version of Unity is 2018.2.11 I understand that Unity LTS is supposed to b

Unity2D how do i calculate jump height using Velocity & Gravity

i would like to calculate the jump height. but i don't know how Example: RightBody2D rb = this.GetComponent<RightBody2D>(); // Do jump rb.velocity = new

How to remove Visual Studio 'IDE' warnings for a Unity project?

I've been trying to get rid off IDE warnings for a Unity project: While csc.rsp works for CS warnings, it doesn't for IDE warnings: -nowarn:CS0649,IDE0063,I

How can i draw a cable with touch in Unity (like vacuum cleaner plug cable)

I can drawing line with line renderer. But i want to pull that line with realistic effect like vacuum cleaner cable. video (for 5 sec) I want to connect all the

How to change text by script in Unity

I have a unity project with a text field and I want to change it to something else by clicking a button. Like javscript ids. Can someone help me?

Unable to start Oculus in Unity Editor

Hi everyone) I can't see the oculu's rotations in unity editor when press play button. No errors((( Unity - 2019.4.37f1 Oculus XR Plugin - 1.12.0 (try 1.11.2)

Error on Main Camera in Unity: "The renderer used by this camera doesn't support camera stacking. Only Base camera will render."

I just updated my unity version from 2018 to 2019. Also, I've got a new render pipeline for the 2D lights feature, and there is this weird white flickering when

Image Processing in Python from Unity Hololens Development

So I have an image processing algorithm doing crack detection written in Python and I want to have this work on the Hololens (in Unity). I don't have any experi

Draw a Line on Canvas With Mouse Position Unity 3D

I followed a tutorial to draw a line using mouse position, the line will be drawn inside the canvas. But when running it, the line didn't drawn! and it gives me

Get Unity compass true north heading

I'm currently trying to implement a location-based AR app for Android using Unity C# and ARCore. I have managed to implement an algorithm which gets latitude/lo

How do you multiply a quanternion by a vector3 in unity?

I have this code: private Transform player; // Start is called before the first frame update void Start() { player = Object.FindObjectOfType<PlayerIdenti

Does unrolling a loop affect the accuracy of the computations within?

Summarized question Does unrolling a loop affect the accuracy of the computations performed within the loop? And if so, why? Elaboration and background I am wri

The type or namespace name `PostProcessing' does not exist in the namespace `UnityEngine.Rendering'

Do someone know how to fix this? I got this error after importing Cinemachine from the Unity Asset Store. I'm using Unity 2018.1.0f2 and have no problems with 2

Unity : Cast a gameObject as custom monobehavior class

Is there a way to cast a gameObject as an instance of a monobehavior class? The gameobject has a script component linked with that very class. I have an instanc

Many unwanted animation clips when import from Blender to Unity

I want to export my model from Blender (3.1) to Unity (2021.2). I did some animations but i removed them because i want to create new ones. When exporting to Un

Making Multiple playered Multiplayer Card Game With Mirror

I am trying to built a multiplayer card game with max 4 players and I am very new to Multiplayer Games. Idea is there is a "Deal Card" button, when a player cli

My Unity project contains empty compiler errors that stop me from entering play mode. How do I resolve them?

I'm working on a project with a friend, we are using git for version control. They created the unity project and I pulled it to my computer as well. Every time

Deserializing ARWorldMap in Unity that was serialized with NSKeyedArchiver in native iOS

I have developed an iOS/ARKit app that functions as a content editor for my AR game. It has a fair amount of interface that I don't want to port over to Unity,