原创 Antialiasing (Fullscreen)抗鋸齒特效

該項提供了平滑圖像的功能,圖像硬件渲染出的多邊形的邊緣會有鋸齒,影響視覺效果,而全屏抗鋸齒特效能夠平滑處理這些鋸齒,增強場景中視覺效果,通常情況下,抗鋸齒特效的質量與算法的速度成反比。 參數: Technique:抗鋸齒技術,該

原创 iTween曲線動畫(沿着軌跡運動)

using UnityEngine; using System.Collections; public class Path : MonoBehaviour { //路徑尋路中的所有點 public Transf

原创 閃爍效果:原理材質球或貼圖的替換

int i=0; public int ptj; void ButtonEffJump(){ timelose+=Time.deltaTime; if(uis.value==1){

原创 OnDestroy方法 很好用的方法

OnDestroy方法 很好用的方法 不能忘了它 用一段簡單的例子解釋一下 這是AA腳本 using UnityEngine; using System.Collections; public class AA : MonoBeh

原创 用HTML代碼加載Unity內容 HTML code to load Unity content

Unity content is loaded in the browser by the Unity Web Player plugin. HTML code usually does not communicate

原创 Unity3D 註釋工具

本章讓我們學習註釋工具的用途 我們自己寫的代碼一定要給註釋 時間一長也許什麼都會忘記 註釋工具也可以寫在一些類型上 using UnityEngine; using System.Collections; public cl

原创 Unity iOS 基礎 Unity iOS Basics

This section covers the most common and important questions that come up when starting to work with iOS. 本節包括了iO

原创 雙擊事件

void BackHome(){ if (Application.platform==RuntimePlatform.Android&&Input.GetKeyDown(KeyCode.Escape)) {

原创 cocos2d-x lua腳本簡單的瞭解

之前有學過Cocos2dx,但是後來沒用,有些忘了。 最近要做新的策略遊戲,打算採用Cocos2d-x+LUA的方式開發,LUA做界面和業務,C++做框架和通信等,因此自己抓緊時間重新溫習了下LUA(其實以前做界面設計器裏面的

原创 unity3D C#簡單代理使用瞭解

代理聲明 using UnityEngine; using System.Collections; public class Test1 : MonoBehaviour { // Use this for initial

原创 路徑下獲取文件(類似安卓指定路徑文件獲取)

using UnityEngine; using System.Collections; using System; using System.IO; //添加對System.IO 命名空間的引用 public clas

原创 Unity3D項目文件目錄發佈後對應的ios/android應用目錄

unity3d項目文件目錄發佈後,對應的ios/android應用目錄 分類: unity3d 2014-11-19 21:00 2261人閱讀 評論(0) 收藏 舉報 Unity3d的Resource、AssetBundle與

原创 平臺依賴編譯

Unity includes a feature named “Platform Dependent Compilation”. This consists of some preprocessor directives that

原创 優化性能建模角色

Below are some tips for designing character models to give optimal rendering speed. 下面是設計人物模型,以提供最佳的渲染速度的一些技巧。 Use

原创 Contains 類似檢測匹配字符串

using UnityEngine; using System.Collections; public class NewBehaviourScript : MonoBehaviour { // Use this for