Scripting Questions
2
Hi people, beginner programmer here.
I’m using the Unity Splines package for the first time I’m trying to Instantiate() something on a specific point on a spline.
How can i get the coordinates (transf...
2
Solved
I am making a 3D game and have added a feature that if the Bot collides with a specific object, it gets knocked back.
I am using a NavMeshAgent for the bot and this goes against the Rigidbody so I dis...
Abacus asked 24/8, 2020 at 2:57
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...
Baba asked 30/3 at 14:5
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
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...
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
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
2
Solved
I have a few inspector fields in my C# code:
public Color BackgroundColor = new Color(45, 50, 125, 255);
public Color TextColor = new Color(228, 228, 228, 255);
public Color WarningColor = new Color(2...
Companionate asked 29/1, 2013 at 10:13
2
Solved
I’m making a big laser that uses CircleCast to detect collision with objects. And I use LineRenderer to render the laser, a ParticleSystem to render the hit effect. The problem is, if I set the Line’s...
Evadnee asked 21/10, 2020 at 1:53
3
Solved
I am working on a game where you can flip gravity and walk on the ceiling.
But I can’t figure out how to flip the camera upside down so the player’s view looks the same on the floor and the ceiling.
I...
Sungkiang asked 28/5, 2022 at 16:12
2
Solved
I have been using Visual Studio Code with unity for about 3 years now, but recently it has stopped working properly. Normally errors show up in VS code with the red line under them, but that has stopp...
Foul asked 21/1 at 1:53
2
Solved
There may be a solution for this already, but i personally can’t seem to find any…
So I used Dani’s Karlson tutorial for fps movement link:
i think I’ve done everything correctly, but for som...
Broussard asked 26/5, 2021 at 14:25
1
I don’t get it. I thought I can use IsCompleted to check if the job is finished and then process the result (the job takes quite a while), but right after starting my testapplication it tries to execu...
Contemplate asked 8/8, 2019 at 22:37
0
Hello what I exactly want is render 3d object behind the Sprite Renderer.
I am manage to do this with adding Sorting Group to Skinned Mesh Renderer and changing the material of 3d object to Transparen...
Aeneus asked 16/5 at 16:58
3
Hello Photon,
I have been frustrated about a problem in which when loading players is scene, it doesn’t display them, I can only see the players by their character models that are used to display them...
Tights asked 19/11, 2021 at 0:5
3
Hello everyone, I have an update function below that is supposed to be tracking bodies from the Kinect.
However I have an issue where the _Bodies Dictionary doesn’t store anything and is always cleare...
Approval asked 16/2, 2016 at 13:11
2
Hello, I have a Terrain with a few TerrainLayers and I would like to change the tint color of the TerrainLayers via script.
The tint color property is only visible through the Terrain inspector and no...
Boanerges asked 14/11, 2020 at 3:25
3
I recently started a new project, and purchased a asset from dexsoft called: Adventurer’s Village 2.
After building some houses and stuff this error came:
Assets/Standard Assets/Image Effects (Pro On...
Laodicea asked 12/2, 2016 at 21:51
2
I tried to open multiple projects, and they first would have missing objects and errors. Now when I open one unity project, I go to the scenes, and the whole unity would crash? Now I can’t make a proj...
3
Hello, guys! I have a question. When I am pausing my game, I want it to freeze and when unpausing I want it to unfreeze. I know basically how to achieve that but I don’t know how to make that, when I ...
3
I have a question, sorry for my bad English.
I know and use Random.insideUnitSphere. Now I would like to create a random point inside the sphere, but outside another smaller sphere (with the same cent...
Apteryx asked 10/3, 2017 at 14:16
2
I’m running into a very annoying issue. Come on Unity! I thought you were better than this. When there is a bug in a script, the script shows up as missing in the inspector. I just upgraded an old pro...
Neuroglia asked 26/2, 2023 at 22:21
2
I have a question regarding the Mathf.SmoothDampAngle function. I have a plane, which I am trying to tilt randomly in different directions. I want it to be constrained to a maximum x rotation and a ma...
Brueghel asked 12/5, 2012 at 23:15
8
Solved
I’ve added the following manipulators to the GraphView:
this.AddManipulator(new ContentZoomer());
this.AddManipulator(new SelectionDragger());
this.AddManipulator(new ContentDragger());
this.AddManipu...
Diagnose asked 26/3, 2021 at 12:31
2
Solved
I’ve got a colour puzzle-type game and have 2 UI buttons that I’m trying to set up functionality for - a “YES” button and a “NO” button. If the colours match, you need to press the YES button and if t...
Contaminate asked 24/7, 2019 at 4:23
1 Next >
© 2022 - 2024 — McMap. All rights reserved.