码迷,mamicode.com
首页 >  
搜索关键字:onpostrender    ( 3个结果
Unity GL画折线
新建一个脚本,这个物体得挂在有摄像机组件的物体上才能生效 OnPostRender() 这个函数才会被自动调用(类似生命周期自动调用) 然后就可以代码画线了,原理是openGL的画线 ...
分类:编程语言   时间:2018-06-23 19:10:20    阅读次数:177
[Unity基础]RenderTexture
参考链接: https://www.cnblogs.com/Jimm/p/5951362.html 一.相关API 1.Texture2D.ReadPixels 从RenderTexture.active中复制像素,以左下角为原点。 2.MonoBehaviour.OnPostRender 当相机渲 ...
分类:编程语言   时间:2018-05-19 00:11:10    阅读次数:335
unity GL画线
对某篇文章加以修改。把这个脚本挂到相机下,才能显示。 using UnityEngine;   using System.Collections;   public class joint{   public Vector3 org;   public Vector3 end;   }   public class Drawline : MonoBehaviour {  ...
分类:编程语言   时间:2015-08-07 01:54:07    阅读次数:684
3条  
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!