S
S
SirTSur2022-03-18 17:57:02
C++ / C#
SirTSur, 2022-03-18 17:57:02

How to solve error CS01117?

Writes-

Quaternion
does not contain a definition for
indetity

The code:
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

1 answer(s)
K
KraGen.Developer, 2022-03-18
@SirTSur

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 question

Ask a Question

731 491 924 answers to any question