unity动态生成render texture

using UnityEngine;
using System.Collections;

public class ExampleClass : MonoBehaviour {
public RenderTexture rt;
void Start() {
rt = new RenderTexture(256, 256, 16, RenderTextureFormat.ARGB32);
rt.Create();
}
}

猜你喜欢

转载自blog.csdn.net/weixin_46051151/article/details/122405035