Answer the question
In order to leave comments, you need to log in
How to solve error CS01117?
Writes-
Quaterniondoes not contain a definition for
indetity
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class LevelManager : MonoBehaviour
{
public static LevelManager instance;
public Transform RespawnPoint;
public GameObject PlayerPrefab;
private void Awake ()
{
instance = this;
}
public void Respawn ()
{
Instantiate(PlayerPrefab, RespawnPoint.position, Quaternion.indetity);
}
}
Answer the question
In order to leave comments, you need to log in
change indetity to identity at the end of the code
public void Respawn ()
{
Instantiate(PlayerPrefab, RespawnPoint.position, Quaternion.identity);
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question