Posts by Samuel Arao • 1 point
5 posts
-
0
votes1
answer70
viewsA: Unity C# error CS0411
Friend Getcomponent needs a type of object to receive the information, I will give an example in one of your codes and you try in other, as activity but if you doubt I can help you again: public…
-
0
votes1
answer59
viewsA: Unity - Error: Object Reference not set to an instance of an Object - Instantiate "Spawn" I need help
Look friend, it seems to me that your Unity is not finding its object in Start, check if they are with the tag (careful not to confuse the tag with Layer), and I move with Unity for 3 years, and I…
-
0
votes1
answer44
viewsA: Access the position of a Transform in a Unity list
Look, I don’t know if I understand the question very well, but if I did, I would tell you to create a foreach to scroll through the list of Transform passing her position as instantiate parameter.…
-
0
votes2
answers46
viewsA: Do parameters harm physics in Unity update method?
Look what the friend above said is true, but give you a hint of POO here, if you have the variables you need, during the method call in class, there is no reason to use parameters. But what is…
-
0
votes1
answer30
viewsA: CS0411 Unity error
Friend the Getcomponent method needs to receive a generic type (abstract class), for example if it is the type class Asteroid, it would look like this: public void CreateAsteroids(float…