|
|
|
using UnityEditor;
|
|
using UnityEngine;
|
|
|
|
|
|
public class SkyChange : MonoBehaviour
|
|
{
|
|
public Material picture;
|
|
// Start is called before the first frame update
|
|
void Start()
|
|
{
|
|
//更换天空盒
|
|
RenderSettings.skybox = picture;
|
|
|
|
}
|
|
|
|
// Update is called once per frame
|
|
void Update()
|
|
{
|
|
|
|
}
|
|
}
|