Простой телепорт (портал) в Unity / Simple teleport (portal) in Unity
Автор: Raygman
Загружено: 2022-01-08
Просмотров: 1442
Описание:
В видео будет показано как создать самый простой телепорт/портал в Unity. Код ниже!
The video will show the simplest teleport/portal in Unity. Code below!
CODE:
using UnityEngine;
public class Teleport : MonoBehaviour
{
[SerializeField] private Transform _outPort;
private void OnTriggerEnter(Collider other)
{
other.transform.position = _outPort.position;
float rotY = _outPort.rotation.eulerAngles.y;
other.transform.rotation = Quaternion.Euler(other.transform.rotation.x, rotY - 180, other.transform.rotation.z);
}
}
#unity #разработкаигр #unityteleport #unitygame #каксделатьигру #каксделатьвюнити #unitydevelopment #howinunity #teleport#unitytest #кактелепортировать#unityscripting #unitycode #unityteleport #телепортвюнити #телепорт
Повторяем попытку...
Доступные форматы для скачивания:
Скачать видео
-
Информация по загрузке: