블로그 이미지
Every unexpected event is a path to learning for you. blueasa

카테고리

분류 전체보기 (2809)
Unity3D (865)
Programming (479)
Server (33)
Unreal (4)
Gamebryo (56)
Tip & Tech (234)
협업 (61)
3DS Max (3)
Game (12)
Utility (140)
Etc (98)
Link (32)
Portfolio (19)
Subject (90)
iOS,OSX (55)
Android (16)
Linux (5)
잉여 프로젝트 (2)
게임이야기 (3)
Memories (20)
Interest (38)
Thinking (38)
한글 (30)
PaperCraft (5)
Animation (408)
Wallpaper (2)
재테크 (18)
Exercise (3)
나만의 맛집 (3)
냥이 (10)
육아 (16)
Total
Today
Yesterday
반응형
Posted by blueasa
, |

비에 관한 예쁜 우리말

한글 / 2013. 4. 13. 02:16

에 관한 예쁜 우리말

가루비 - 가루처럼 포슬포슬 내리는 비
잔 비 - 가늘고 잘게 내리는 비
실 비 - 실처럼 가늘게, 길게 금을 그으며 내리는 비
싸락비 -싸래기처럼 포슬포슬 내리는 비
날 비 - 놋날(돗자리를 칠 때 날 실로 쓰는 노끈)처럼 가늘게 비끼며 내리는 비
발 비 - 빗발이 보이도록 굵게 내리는 비
작달비 - 굵고 세차게 퍼붓는 비
달구비 - 달구(땅을 다지는 데 쓰이는 쇳덩이나 둥근 나무 토막)로 짓누르듯 거세게 내리는 비
여우비 - 맑은 날 잠깐 뿌리는 비
먼지잼 - 먼지나 잠재울 정도로 아주 조금 내리는 비
 
개부심 - 장마로 홍수가 진 후에 한동안 멎었다가 다시 내려, 진흙을 씻어 내는 비
바람비 - 바람이 불면서 내리는 비
도둑비 - 예기치 않게 밤에 몰래 살짝 내린 비
누 리 - 우박
궂은비 - 오래 오래 오는 비
 
보름치 - 음력 보름 무렵에 내리는 비나 눈.
그믐치 - 음력 그믐께에 내리는 비나 눈.
웃 비 - 비가 다 그치지는 않고, 한창 내리다가 잠시 그친 비.
해 비 - 한쪽에서 해가 비치면서 내리는 비
꿀 비 - 농사짓기에 적합하게 내리는 비
 
단 비 - 꼭 필요할 때에 알맞게 내리는 비.
목 비 - 모낼 무렵에 한목 오는 비
못 비 - 모를 다 낼 만큼 흡족하게 오는 비
약 비 - 요긴한 때에 내리는 비
모다깃비 - 뭇매를 치듯이 세차게 내리는 비
 
우레비 - 우레가 치면서 내리는 비
마른비 - 땅에 닿기도 전에 증발되어 버리는비
오란비 - 장마의 옛말
건들장마 - 초가을에 비가 내리다가 개고, 또 내리다가 개곤하는 장마
일 비 - 봄비, 봄에는 할 일이 많기 때문에 비가 와도 일을 한다는 뜻으로 쓰는 말
 
잠 비 - 여름비, 여름에는 바쁜 일이 없어 비가 오면 낮잠을 자기 뜻으로 쓰는 말
떡 비 - 가을비, 가을걷이가 끝나 떡을 해 먹으면서 여유 있게 쉴 수 있다는 뜻으로 쓰는 말
술 비 - 겨울비, 농한기라 술을 마시면서 놀기 좋다는 뜻으로 쓰는 말
비 꽃 - 비 한 방울 한 방울, 비가 시작될 때 몇 방울 떨어지는 비.

반응형

'한글' 카테고리의 다른 글

당최 vs 당췌  (0) 2013.07.08
오오미  (0) 2013.07.04
괴나리봇짐(개나리봇짐)  (0) 2012.12.09
쉬운 맞춤법 공부  (0) 2012.10.23
율/률(열/렬)  (0) 2012.06.03
Posted by blueasa
, |

화면에 커서를 보이거나 안보이게하기

Screen.showCursor = false;



화면의 가로/세로 크기값

Screen.width

Screen.height



해상도 설정하기

void Awake() {

 Screen.SetResolution(640, 480, true);

}



해상도 정보얻어오기

public Resolution[] resolutions = Screen.resolutions;



커서가 보이지 않고 움직이지 않게하기

Screen.lockCursor = true;



프로그램 종료하기

Application.Quit();



화면 캡쳐하기 (png 파일로만 되는거 같아요. 확실치는 않음 ㅎㅎ)

Application.CaptureScreenshot("Screenshot.png");



씬데이터 로딩 체크하기

 void Update() {

        if (Application.CanStreamedLevelBeLoaded(1))

            Application.LoadLevel(1);

        

    }


 

유니티 오쏘링모드에서 게임이 플레이 중인지 체크하기

Application.isPlaying




웹사이트로 링크걸기

Application.OpenURL ("http://unity3d.com/");



플랫폼(OS) 확인하기

Application.platform



실행중인 디바이스 확인하기(OS체크)

RuntimePlatform.OSXPlayer //맥

RuntimePlatform.WindowsPlayer // 윈도우

RuntimePlatform.WiiPlayer //닌텐도 위(wii)

RuntimePlatform.IPhonePlayer // 아이폰

RuntimePlatform.Android // 안드로이드

RuntimePlatform.XBOX360 // 엑스박스



PS3 //플레이스테이션



반응형
Posted by blueasa
, |




집 프린트도 저가형이라 색감이 좋지 않아서 구매했다!


몇 달 걸릴 것 같지만..


즐겁게 만들어야지.. =_=

반응형

'PaperCraft' 카테고리의 다른 글

[완료] RX-78 NT-1 ALEX(ver.인형사)  (0) 2013.06.02
하츄네 미쿠  (0) 2013.03.10
토로(Toro)  (0) 2013.03.10
토로(Toro) 페이퍼 크래프트(PaperCraft)  (0) 2012.06.15
Posted by blueasa
, |

아래 둘 중 하나인 듯..


UnityEditor.SceneView.currentDrawingSceneView.camera


or


UnityEditor.SceneView.lastActiveSceneView.camera



참조 : http://forum.unity3d.com/threads/64920-Moving-scene-view-camera-from-editor-script?highlight=scene+view+camera



반응형
Posted by blueasa
, |

EditorWindow에서 Input 클래스는 안먹히는가 보다.

(참조 : http://answers.unity3d.com/questions/15067/input-in-editor-scripts.html)

그래서 대신 사용하는 게 Event 클래스..



Event


A UnityGUI event.

Events correspond to user input (key presses, mouse actions), or are UnityGUI layout or rendering events.

For each event OnGUI is called in the scripts; so OnGUI is potentially called multiple times per frame. Event.current corresponds to "current" event inside OnGUI call.

See Also: GUI Scripting Guide, EventType.

Variables
rawType

type

The type of event.

mousePosition

The mouse position.

delta

The relative movement of the mouse compared to last event.

button

Which mouse button was pressed.

modifiers

Which modifier keys are held down.

clickCount

How many consecutive mouse clicks have we received.

character

The character typed.

commandName

The name of an ExecuteCommand or ValidateCommand Event.

keyCode

The raw key code for keyboard events.

shift

Is Shift held down? (Read Only)

control

Is Control key held down? (Read Only)

alt

Is Alt/Option key held down? (Read Only)

command

Is Command/Windows key held down? (Read Only)

capsLock

Is Caps Lock on? (Read Only)

numeric

Is the current keypress on the numeric keyboard? (Read Only)

functionKey

Is the current keypress a function key? (Read Only)

isKey

Is this event a keyboard event? (Read Only)

isMouse

Is this event a mouse event? (Read Only)

Functions
GetTypeForControl

Use

Use this event.

Class Variables
current

The current event that's being processed right now.

Class Functions
KeyboardEvent

Create a keyboard event.



링크 : http://docs.unity3d.com/Documentation/ScriptReference/Event.html

반응형

'Unity3D > Tips' 카테고리의 다른 글

유니티 소소한 TIP  (0) 2013.04.05
How to get SceneView Camera?  (0) 2013.03.25
비활성화 된 오브젝트 찾을 때..  (0) 2013.03.21
iOS 60프레임으로 셋팅하기  (0) 2013.03.08
씬 로딩화면  (0) 2013.03.08
Posted by blueasa
, |

비활성화 된 오브젝트를 찾을 때..

몰랐었는데 transform.FindChild() 함수가 자기 자식의 비활성 오브젝트까지 검사한다.

유용하게 쓸 것 같다.

(근데 왜 레퍼런스에는 FindChild() 함수가 안보이지..? -_-;)


1) 상위에 활성화 된 GameObject가 필요.

2) 활성화 된 상위 GameObject에서 GameObject.transform.FindChild() 함수로 비활성화 된 GameObject를 찾는다.


예) 

1 GameObject goParent; 2 Transform trInactiveObject = goParent.transform.FindChild("찾고 싶은 비활성화 된 오브젝트 이름"); 3 trInactiveObject.gameObject.SetActive(true); // 비활성 오브젝트 활성화




참조 : http://devkorea.co.kr/bbs/board.php?bo_table=m03_qna&wr_id=26759&sca=UNITY&sfl=wr_subject%7C%7Cwr_content&stx=%EB%B9%84%ED%99%9C%EC%84%B1&sop=and&currentId=44


--------------------------------------------------------------------------------------------------------


Transform.childCount;    // 바로 아래의 자식 개수(비활성화 된 자식 포함)를 반환

Transform.GetChild(int index);    // 해당 index의 자식 Transform(비활성화 된 자식 포함)을 반환

반응형

'Unity3D > Tips' 카테고리의 다른 글

How to get SceneView Camera?  (0) 2013.03.25
EditorWindow에서 마우스/키보드 입력 체크  (2) 2013.03.22
iOS 60프레임으로 셋팅하기  (0) 2013.03.08
씬 로딩화면  (0) 2013.03.08
Change MonoDevelop Line Ending  (0) 2013.03.06
Posted by blueasa
, |




오랜만에 기술서적 아닌 책을 사보는 것 같다.


1일 1식만 살랬는데 1만원 이상이어야 배송비 무료라길래


보고싶었던 혜민스님 책까지 겸사겸사..

반응형
Posted by blueasa
, |

링크 : http://flyooki.blogspot.kr/2012/06/blog-post.html

반응형
Posted by blueasa
, |

Unity Singleton

Unity3D/Script / 2013. 3. 11. 10:58

Example :

GameMaster.cs

public class GameMaster : MonoSingleton< GameMaster >
{
    public int difficulty = 0;
    public override void Init(){ difficulty = 5; }
}

OtherClass.cs

You forgot a "using UnityEngine;" fixed. :P

using UnityEngine;
public class OtherClass: MonoBehaviour
{
    void Start(){ print( GameMaster.instance.difficulty ); } // 5
}

The code :

using UnityEngine;
public abstract class MonoSingleton<T> : MonoBehaviour where T : MonoSingleton<T>
{
    private static T m_Instance = null;
    public static T instance
    {
        get
        {
            // Instance requiered for the first time, we look for it
            if( m_Instance == null )
            {
                m_Instance = GameObject.FindObjectOfType(typeof(T)) as T;
 
                // Object not found, we create a temporary one
                if( m_Instance == null )
                {
                    Debug.LogWarning("No instance of " + typeof(T).ToString() + ", a temporary one is created.");
                    m_Instance = new GameObject("Temp Instance of " + typeof(T).ToString(), typeof(T)).GetComponent<T>();
 
                    // Problem during the creation, this should not happen
                    if( m_Instance == null )
                    {
                        Debug.LogError("Problem during the creation of " + typeof(T).ToString());
                    }
                }
                m_Instance.Init();
            }
            return m_Instance;
        }
    }
    // If no other monobehaviour request the instance in an awake function
    // executing before this one, no need to search the object.
    private void Awake()
    {
        if( m_Instance == null )
        {
            m_Instance = this as T;
            m_Instance.Init();
        }
    }
 
    // This function is called when the instance is used the first time
    // Put all the initializations you need here, as you would do in Awake
    public virtual void Init(){}
 
    // Make sure the instance isn't referenced anymore when the user quit, just in case.
    private void OnApplicationQuit()
    {
        m_Instance = null;
    }
}


출처 : http://wiki.unity3d.com/index.php/Singleton

반응형
Posted by blueasa
, |