ict.lixian.three/Assets/ZHY/SkyChange.cs

23 lines
343 B
C#

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()
{
}
}