11 2018 档案
摘要:表操作 注释:空null ,不空not null ·创建表: create table 表名( 列名1 数据类型 可否空 列名2 数据类型 可否空 列名3 数据类型 可否空 ... ); ·表增加新列: alter table 表名 add 列名 数据类型 可否为空 ·表修改列: alter tab
阅读全文
摘要:using System.Collections; using System.Collections.Generic; using UnityEngine; //思想:在短时间内在规定圆内随机震动对象位置,从而实现震动效果 public class CamZhengDong : MonoBehavi
阅读全文
摘要:using System.Collections; using System.Collections.Generic; using UnityEngine; public class NewBehaviourScript : MonoBehaviour { //滚动速度 public float H
阅读全文
摘要://射线原点 [SerializField] Transform tr; //射线长度 [SerializField] float dis = 5; //射线停留时间 [SerializField] float t=0.1f // Use this for initialization void S
阅读全文
摘要:Material mat; // float a=0; //控制闪烁速度 float speed=0.6f; float b=1; Update(){ if(a>0.3f){ b=1; } if(a<=0f){ b=-1; } a += Time.deltaTime * b *speed; mat.
阅读全文
摘要:Animation:单一动画,一般使用在单一动画播放。占用资源小。 Animator:多个动画,可用控制器切换多个动画播放。占用资源大。
阅读全文
摘要:Text tex; string s="Unity使Text 文字逐个出现"; //字符出现间隔 waitTime = 0.3f; // float speed=0; //方法一 //在协同中实现 IEnumertor IEnName(){ foreach(char c in s){ tex.tex
阅读全文
摘要://需要创建对象 GameObject prefab; //创建对象的规定位置或父物体 Transform tr; //创建出对象 Instantiate(prefab); //创建对象,并设定位置和角度 Instantiate(prefab,tr.position,tr.rotation); //
阅读全文

浙公网安备 33010602011771号