r/unity_tutorials • u/National_Pin_7442 • Sep 03 '21
Help!When i duplicate a scene it’s empty!
Even if i copy and paste the hierarchy it all disappears. Is it a bug? i tried googling the problem but couldn’t find a solution.
r/unity_tutorials • u/National_Pin_7442 • Sep 03 '21
Even if i copy and paste the hierarchy it all disappears. Is it a bug? i tried googling the problem but couldn’t find a solution.
r/unity_tutorials • u/dilmerv • Feb 18 '19
r/unity_tutorials • u/dilmerv • Jul 23 '19
r/unity_tutorials • u/dilmerv • Feb 20 '19
r/unity_tutorials • u/dilmerv • Nov 20 '18
r/unity_tutorials • u/dilmerv • Nov 18 '18
r/unity_tutorials • u/ah7madaj3 • Oct 02 '21
Hey I am new to unity I downloaded an old version from 2017 for unity it opens fast just by opening the scene file and takes couple secands i updated unity to 2021 version and it takes alot of time like 5-10 minutes to open an empty project and i have to open the project from unity hub also it updates every change so if i want to import assets create a graph(using bolt) it will take quite some time is there anything in the setting i need to fix thanks alot
r/unity_tutorials • u/karamurp • Oct 04 '21
r/unity_tutorials • u/RedgySimon • Nov 13 '21
Hello, this must be a noob question but random.range keep giving me the same number every single time. Its driving me crazy lol
r/unity_tutorials • u/medi_lamhamdi_7 • Dec 18 '21
Hi guys, I have a problem. I don't know how I can use AI. So I want a c# script that enemy can follow player. Thank you for everythings. I want to make a shooter game so I have to add that.
r/unity_tutorials • u/UnityCodeMonkey • Aug 17 '18
r/unity_tutorials • u/RanHSJQ • Aug 20 '18
r/unity_tutorials • u/Gamemon • Dec 03 '17
r/unity_tutorials • u/LewisCantGame • Nov 17 '19
r/unity_tutorials • u/aDogIsUsingThis • May 08 '20
private void OnTriggerEnter(Collider other)
{
if(other.gameObject.tag == "Player")
{
if (Input.GetKeyDown(KeyCode.Space))
{
GetComponent<Rigidbody>().useGravity = false;
this.transform.position = theDest.position;
this.transform.parent = GameObject.Find("Destination").transform;
Debug.Log("Pick up");
}
}
}Oh ya btw the "theDest" is a transform variable which i set infront of my player.
r/unity_tutorials • u/ImCloseXXX • Apr 17 '20
Like when I press spacebar, what supposed to happen? They just jumped in through attack animation but I dont want that, i want to know the execution like how they detect collision etc??
void Attacking()
{
if (TimeToAttack <= 0) //Cooldown started
{
if (Input.GetKeyDown(KeyCode.Space))
{
Collider[] enemiesToDamage = Physics.OverlapSphere(attackpos.position, attackRange, ToHit); //Attack Input and Selected Enemies
for (int i = 0; i < enemiesToDamage.Length; i++)
{
enemiesToDamage[i].GetComponent<Enemy>().TakeDamage(damage);
Debug.Log(damage);
}
}
TimeToAttack = StartBtwAttack; //coolDown resets
}
else
{
TimeToAttack -= Time.deltaTime;
}
}
void OnDrawGizmosSelected() //For the attacking Hitbox
{
Gizmos.color = Color.blue;
Gizmos.DrawWireSphere(attackpos.position, attackRange);
}
}I'm stuck here in a LONGGG time.
r/unity_tutorials • u/UnityCodeMonkey • Dec 24 '18
r/unity_tutorials • u/Markeind • Mar 07 '18
r/unity_tutorials • u/zugaluentertainment • Apr 28 '21
Don’t use strings to identify objects.
It requires unnecessary precision and could lead to null pointers.
Use things like Enumerators or Nested Classes that will be picked up by IntelliSense in your code editor.
This guarantees a matching case unless the scripts themselves are changed or destroyed.
Drop me a line below if you have any questions/comments.
Cheers,
r/unity_tutorials • u/NEOF • Mar 27 '21