Beginner Questions

5

I want to be able to drag and drop a component onto my script in the Inspector like a BoxCollider or a Script, and then turn it on or off when StartAction() is called. I tried this with .enabled = fal...
Goraud asked 8/9, 2022 at 15:57

3

Solved

I’ve made a player with a Character Controller, and no other Collider. I am trying to use the function OnTriggerEnter or OnTriggerStay, but it doesn’t seem to work with the Character Controller. Does ...
Guadiana asked 27/3, 2016 at 12:42

1

Solved

what is null.
Matrilineage asked 17/10, 2011 at 6:56

4

Solved

Does anyone know what the and/or operator is?
Hogarth asked 25/3, 2016 at 16:27

0

I installed the Unity 2021.3.8 version that I used at school for the task of creating my own game using Lego microgame at home, finished installing the latest version of Unity Hub, and opened a new pr...
Glorify asked 7/11, 2023 at 11:55

3

[Collab] Collab service is deprecated and has been replaced with PlasticSCM Assertion failed on expression: ‘m_ChannelAccessLeaseEndTime > 0.0’ Where did these come from? All I did was make a new...
Blain asked 19/11, 2023 at 14:6

1

Solved

I get thrown an error of Argument 1: cannot convert from ‘System.Collections.IEnumerable’ to ‘string’ when starting the corountine. 155931-2020-04-05-2.png1280×1399 56.1 KB
Liana asked 5/4, 2020 at 23:47

3

Solved

I am trying to add a Crosshair to my mouse look on my FPS using C#. I am totally clueless on how to do this, I been searching and found some java script tutorials, but I don’t know java script or have...
Nonary asked 2/1, 2012 at 7:20

3

Solved

Hi, I am trying to check the collision between two colliders and OnCollisionEnter() doesn’t work unless one of the object is RigidBody. I can’t use Rigid Body for all the objects as it’s a way expensi...
Airwoman asked 7/11, 2010 at 6:3

4

Solved

For some reason, the window in File → Build Settings → Scenes in Build is locked as in the attached screenshot and I am unable to add further scenes by dragging or the "Add open Scenes" button and I c...
Governorship asked 1/1, 2020 at 9:37

1

Type “XXX” already defines a member called “Update” and “Start” with the same parameter types. Watching Coding In Flow so this is the same script using System.Collections; using System.Collections.G...
Gyn asked 1/2, 2024 at 10:0

19

I am creating a traffic system where the pedestrians would respond to the traffic lights via collider trigger. The message “STOP” would be displayed with the green light, otherwise the “GO” message wo...
Ashore asked 23/1, 2024 at 4:47

1

What’s the relation between an ServerRpc and ClientRpc and the difference between a host using one, and a client using one? I’ve been headbanging for 10 hours (not actually a joke, been sitting 5-6 ho...
Beneficiary asked 16/2, 2023 at 18:47

2

Solved

Hello I am creating my first game and i am struggling on how to get my sphere that rolls off the edge of my cube to respawn when it is falling in the void.I would like to know how to respwan using the...
Sillabub asked 20/5, 2015 at 7:22

11

Solved

How do i check if my player is grounded? Because its kind of annoying how my player can jump in mid air. This is the script im using, its in Java Script: var jumpSpeed: float = 8; function Update () ...
Reg asked 18/12, 2011 at 3:12

8

Hello everyone, I’m sorry in advance if the subject seems rather basic, but I’ve been trying to understand for several days now and despite a lot of research and attempts, I can’t figure out how to se...
Unfavorable asked 28/12, 2023 at 22:17

4

Solved

Hello everyone! I’ve been struggling with this topic for a while. I have a quite normal scene (Stats are: ~400k polys, ~200 batches and 2 realtime point lights) however the performance of it is not go...

1

I’m guessing this question has been asked to death, but I’m more looking for how to implement this into my AI code, since right now all they do it just rotate on the y axis and just spin around the en...
Haematic asked 13/4, 2013 at 7:49

0

So , I have couple of serialized/public arrays and my script copies elements from them to other arrays (that are used by script later) and afterwards script deducts that element from the original seri...
Ser asked 2/7, 2023 at 16:5

2

Just checking since I can’t seem to find a definitive answer. The difference between GETTING material vs sharedMaterial is obvious - the former creates a copy, the latter references the asset. Is ther...
Arron asked 5/4, 2022 at 6:2

4

Does anyone know how to change a rigidbody gravity with a press of a button, with a script, Does anyone have one i can borrow? ( as for people who are confused im trying to make an object change gravi...
Slime asked 29/11, 2023 at 9:26

2

Solved

I have generated a mesh in a C# script. When I try to use Unwrapping.GenerateSecondaryUVSet( mesh ); I get an error: CS0103: The name `Unwrapping' does not exist in the current context In the script...
Georgeta asked 3/9, 2013 at 3:35

3

I want to make a Select and Deselect method on 3D object. I’m using Event Trigger with ISelectHandler and IDeselectHandler. I’m add as component to 2 object: UI button and 3D object cube… and the resu...
Vagabond asked 8/7, 2015 at 10:13

2

Solved

I just tried to create an 3-dimensional array in C# (which seems to work, at least there are no errors) private int[,,] myarray = new int [sizeX,sizeY,sizeZ]; but when I try to write to the array mya...
Stronski asked 26/9, 2015 at 20:12

3

This might be a silly question. Is it possible to use switch on the string.Contains("") parameter? It returns a bool so obviously this wouldn’t work string name = collision.gameObject.name; switch (...
Malindamalinde asked 26/10, 2016 at 2:47

© 2022 - 2025 — McMap. All rights reserved.