2020
10-08
10-08
Unity使用LineRender实现绘画功能
本文实例为大家分享了UnityLineRender实现绘画功能的具体代码,供大家参考,具体内容如下老规矩,直接上代码:usingSystem;usingSystem.Collections;usingSystem.Collections.Generic;usingUnityEngine;publicclassDrawLine_ZH:MonoBehaviour{privateGameObject_Clone;privateLineRenderer_Line;int_Number;//带有LineRender物体[Header("LineRender预制体")]publicGameObject_Target;voidUpdate(){if...
继续阅读 >