公告版位
- Jun 05 Thu 2014 01:59
GIMP Python 外掛教學:改顏色
- Apr 29 Tue 2014 04:55
Unity 入門教學:用程式產生 Sin 正弦波聲音
基本上這次程式碼主要是用程式來產生 Sin 正弦波聲音,波形圖如下:
以下為執行結果,可以使用滑桿來改變聲音頻率:
using UnityEngine;
- Apr 28 Mon 2014 23:31
Unity入門教學:使用麥克風
遊戲開始後即可聽見自己的麥克風聲音。
void Start () {

- Apr 13 Sun 2014 22:00
Unity入門教學:C# 平滑攝影機
using UnityEngine;
using System.Collections;
public class MyCamera : MonoBehaviour {
/*
This camera smoothes out rotation around the y-axis and height.
Horizontal Distance to the target is always fixed.
There are many different ways to smooth the rotation but doing it this way gives you a lot of control over how the camera behaves.
For every of those smoothed values we calculate the wanted value and the current value.
Then we smooth it using the Lerp function.
Then we apply the smoothed values to the transform's position.
- Apr 06 Sun 2014 21:13
Unity 入門教學:3D圖片、場景選擇
實際運行效果:
編輯環境效果:
請先在場景中建立五個 Plane 平面物件,之後在 Level Switch 中 Size 輸入5,把剛剛5個Plane平面物件一個一個拉進去。
之後在 Image 中輸入圖片數量(最好超過五個),再將各圖片拉進去。
之後按下執行,用鍵盤按左右建,即可看見圖片切換效果。