mirror of
https://gitea.msk.dinamika-avia.ru/Constanta-Design/MI-38.git
synced 2026-01-24 04:15:37 +03:00
04.07.2022
This commit is contained in:
16
Heli_with_panels/Assets/Scripts/ScEditor/ChangeSkybox.cs
Normal file
16
Heli_with_panels/Assets/Scripts/ScEditor/ChangeSkybox.cs
Normal file
@@ -0,0 +1,16 @@
|
||||
using UnityEngine;
|
||||
|
||||
public class ChangeSkybox : MonoBehaviour
|
||||
{
|
||||
|
||||
public Material ground;
|
||||
public Material sky;
|
||||
|
||||
public void setSkybox(string name)
|
||||
{
|
||||
if (name == "ground")
|
||||
RenderSettings.skybox = ground;
|
||||
if (name == "sky")
|
||||
RenderSettings.skybox = sky;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user