- 博客(10)
- 资源 (1)
- 收藏
- 关注
原创 unity 2D 游戏背景无线循环简单使用
注意的地方:贴图格式(Texture type): Texturewrap Mode::Clampusing UnityEngine;using System.Collections;public class BG : MonoBehaviour { public float BGSpeed;//设置背景速度 private Material BGMaterial; // Use this
2017-04-01 10:36:50 5215
原创 unity 针对相机视角截屏并保存
挂在相机上,设置组件属性: Clear Flags 为: Depth only/Solid Color/Don’t Clearusing UnityEngine;using System.Collections;using System;using System.IO;public class CaptrueCameraScript : MonoBehaviour{ pub
2017-04-01 10:32:54 5063
原创 Unity 图片保存 简单使用
/// <summary> /// 图片保存 /// </summary> /// <param name="tex">Tex.</param> private void ImageSaveLocal(Texture tex){ string path = null; #if UNITY_ANDROID path=App
2017-04-01 10:31:09 3736
原创 C# LitJson Json序列化简单使用
Modelpublic class point { public string name{ get; set;} public string age{ get; set;} public DateTime birthday{ get; set;}}public class Person{ public Person() { point
2017-04-01 10:30:05 3045
原创 Unity 材质球shader替换简单使用
using UnityEngine;using System.Collections;public class TestScriptReplaceShader : MonoBehaviour{ Renderer re; // Use this for initialization void Start () { re = transform.Ge
2017-04-01 10:27:50 6798
原创 C# DataTime时间比较简单使用
/// <summary> /// 传入本地或服务器系统时间做判断 true:还在签约中,false:签约已经过期 /// </summary> /// <returns><c>true</c>, if system time was localed, <c>false</c> otherwise.</returns> public static bool Local
2017-04-01 10:26:29 1864
原创 C#文件写入和读取简单使用
// <summary> /// 文件写入 /// </summary> /// <param name="file_path">File path.</param> /// <param name="file_name">File name.</param> /// <param name="str_info">String info.</param>
2017-04-01 10:24:54 715
原创 C#反射(Reflection)简单实用
//*****************************************/// <summary>/// General method.2017.../cyl/// </summary>///*****************************************using UnityEngine;using System.Collections;using S
2017-04-01 10:22:12 412
原创 C#委托简单使用
//*****************************************/// <summary>/// General method.2017.../cyl/// </summary>///*****************************************using UnityEngine;using System.Collections;using S
2017-04-01 10:21:13 380
原创 C#Thread 线程的简单使用
//*****************************************/// <summary>/// General method.2017.../cyl/// </summary>///*****************************************using UnityEngine;using System.Collections;using S
2017-04-01 10:18:44 1052
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人