Questions tagged [gameobject]

GameObject is a key component of the Unity3D engine. It is often associated with Unity3D questions.

GameObject is a key component of the Unity3D engine. It is often used in the engine when developing games and apps. It can be added to a Unity scene to represent and control many game elements such as UI, audio, effects, lighting and various objects. The GameObject can have multiple components added to it, including a script to control its behavior and attributes.

708 questions
-2
votes
2 answers

Unity3d rotate arrow towards mouse position

In unity I have an arrow sprite with pivot on the start of the arrow. Now I need to rotate that arrow in 2d so it always points towards the mouse. It needs to be done with lerp or slerp so when I move mouse too fast, it doesn't jump there but it…
filipst
  • 1,547
  • 1
  • 30
  • 55
-3
votes
1 answer

Why is my variable not accessible?

using UnityEngine; using System.Collections; public class objectControl : MonoBehaviour { public char slected_item = 'F'; public int selected_model = 0; public GameObject f,o,d; // Use this for initialization void Start () { …
dinesh707
  • 12,106
  • 22
  • 84
  • 134
-3
votes
1 answer

How can a GameObject be created in my chosen position when a button is clicked.unity 2d

I want to spawn 4 game objects in my chosen positions when a Button is clicked.Unity 2D C#
Aleks19
  • 47
  • 2
  • 8
1 2 3
47
48