Мои Уведомления
Привет, !
Мой Аккаунт Мои Финансы Мои Подписки Мои Настройки Выход
Руководство API скрипты
public SceneManagement.Scene scene;

Описание

Сцена, частью которой является GameObject.

//Output the name of the Scene this GameObject belongs to using UnityEngine; using UnityEngine.SceneManagement; public class Example : MonoBehaviour { void Start() { Scene scene = gameObject.scene; Debug.Log(gameObject.name + " is from the Scene: " + scene.name); } }
Вы можете отблагодарить автора, за перевод документации на русский язык. ₽ Спасибо
API скрипты 2021.3