Unity Questions

1

Solved

Hi, I have an integer that is something like this: var verts : int[]; var vertices = mesh.vertices; for (int i=0; i<vertices.Length; i++) { verts _= vertices*;*_ _*}//this is only an example*_ _*`...
Kissie asked 27/1, 2011 at 1:21

1

Solved

I have been working on converting this Js to C# but i got a few last bugs I cant get out some one please help me. JS version var driveForce: float; var hoverHeight: float; var thrustForce: float; var...
Smokeless asked 24/4, 2013 at 15:49

1

Solved

Can anyone take a look at this script, it used to work and gave a random number for each zone, but I'm trying to change it so it wont give the same random number twice for a zone. It's the logic from ...
Parada asked 25/10, 2010 at 19:21

1

Solved

Hello, Object is moving by MoveTowards(transform.position, points[index], speed). But sometimes on path I have a larger cluster of points, thus the object slows down. As you can see on picture, object...
Geller asked 13/12, 2018 at 8:38

1

Hi everyone. I’ve been trying to build the latest version of my game since last night, but I’m not sure how to interpret or fix the errors it’s giving me. I was able to build it a couple of days ago, ...
Aleris asked 19/8, 2022 at 14:6

1

Unity NavMeshSurface IsPartOfPrefab not found something. It says in the log error CS1061: ‘NavMeshSurface’ does not contain a definition for ‘IsPartOfPrefab’ and no accessible extension method ‘IsPar...

1

Solved

Applying a rotational force to the rigidbody attached to the spine or hips has no effect. Applying a force works as expected… but applying torque has no effect. How can I rotate a ragdoll through forc...
Mutualize asked 6/1, 2020 at 4:38

2

Solved

Hi, basically i want to do a custom font management… now, I have a font with limited-set of characters, take a look of this picture… 65154-screenshot-154.jpg818×617 80.2 KB the left & right side...
Barnacle asked 3/3, 2016 at 14:51

5

RaycastAll is supposed to return all objects on the path of the ray for specified distance, right? RaycastHit[] hits = Physics.RaycastAll(ray, float.PositiveInfinity); // DEBUG string debug = "Raycas...

1

Hello! I have a skinned mesh renderer that follows its animator perfectly but when I disable the animator, the ragdoll simply falls to the ground (expected) but the skinned mesh renderer just goes bac...
Bruckner asked 14/6, 2020 at 2:36

1

Hello I’m having this error but don’t know where is located My game is targeted for android and plays without any error both on the phone and the game window. Assertion failed on expression: ‘GetSyste...
Laevorotation asked 28/1, 2020 at 9:36

1

Solved

Hi everyone. I’m very very new to Unity so please go easy on me but basically I have a problem that I do not know how to solve for the life of me. So I have to create a maze Generator(which I have don...
Russ asked 14/3, 2020 at 11:30

1

Hi, i’m currently working on a VR tool and i’m trying to implement haptic feedback. I want the controller to vibrate depending on the “force” used to press on an item. In the update i do the following...
Oriflamme asked 6/7, 2020 at 13:51

2

Hi guys, I would like my Android application to load a video from a folder on my phone. I’m currently able to do this on desktop by adding the URL of my video to the VideoPlayer in code/inspector. How...
Oto asked 10/8, 2017 at 4:54

2

I am a beginner in shader programming and I use URP. I wanted to create a raymarching cloud shader and keep getting this error - Parse error: syntax error, unexpected ‘}’ in line 69. I don’t know what...
Unilobed asked 17/12, 2022 at 15:21

2

I have a ScriptableObject and I want to make an editor so that when the instance of the ScriptableObject is selected in the inspector, it displays a position handle at a point based on a Vector3 varia...
Malvern asked 13/9, 2017 at 14:43

1

Solved

I have a Scriptable Object class called Ability, which inherients Scriptable Objects: public class Ability : ScriptableObject { public new string name; public string aDesc; public int aCoolDown; p...
Alesha asked 20/4, 2018 at 0:17

1

When trying to use root motion in unity 2023.2, the option to select the root node object in the animation is not appearing
Serafinaserafine asked 26/1 at 2:40

1

Solved

Hi All, I’ve been able to test the code out on smaller list sizes and it works exactly as intended. But when its scaled up (from 200 entries to 2000) unity just freezes. In case the subject isn’t very...
Planogamete asked 14/5, 2019 at 1:59

4

When I click on the play button of videos on learn.unity.com nothing happens. I’m doing the Jr Programmer pathway, but tried on various other sections. The console for both Chrome and Edge show this e...
Horsehair asked 4/9, 2022 at 6:27

2

It works great in the Editor, but on Android device I got an error that this file can not be written. AndroidPlayer([email protected]:34999) Failed to store screen shot (/storage/emulated/0/Android/data/...
Pricefixing asked 19/4, 2021 at 9:44

1

Hi there, We have a set of tools which we use to allow artists to safely edit prefabs without breaking any references. The tools simply destroy some GameObjects in a prefab, replace them with new ones...
Grice asked 21/1, 2019 at 16:49

1

Solved

I am currently making a game that will involve the player riding moving platforms. The player is currently Unity’s Standard Asset FPS Controller. I have seen some questions relating to this but I have...
Sarchet asked 16/5, 2017 at 16:19

2

Help! I’ve created a plastic bag in Maya which I deformed using nCloth. I duplicated this nCloth bag multiple times and created blend shapes from these models. I then keyframed the blendshapes to crea...
Harwill asked 11/6, 2016 at 19:40

1

Hello, i’m trying to create a little 2D game and I have some problem with Box Collider and Character Controller’s collider syze who don’t match. Does you know where is the problem ? (I don’t use 2DBox...
Mull asked 17/5, 2017 at 11:3

© 2022 - 2024 — McMap. All rights reserved.