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

카테고리

분류 전체보기 (2849)
Unity3D (893)
Programming (479)
Server (33)
Unreal (4)
Gamebryo (56)
Tip & Tech (189)
협업 (64)
3DS Max (3)
Game (12)
Utility (141)
Etc (99)
Link (34)
Portfolio (19)
Subject (90)
iOS,OSX (52)
Android (16)
Linux (5)
잉여 프로젝트 (2)
게임이야기 (3)
Memories (20)
Interest (38)
Thinking (38)
한글 (30)
PaperCraft (5)
Animation (408)
Wallpaper (2)
재테크 (19)
Exercise (3)
나만의 맛집 (3)
냥이 (10)
육아 (16)
Total
Today
Yesterday

[링크]


에셋 번들 사용하기 첫 번째 - 생성 하기


에셋 번들 사용하기 두 번째 - 에셋 다운로드 받기 (로컬)


에셋 번들 사용하기 세 번째 - 에셋 다운로드 받기 (웹, 서버)


에셋 번들 사용하기 네 번째 - 에셋 다운로드 받기 - 버젼관리


에셋 번들 사용하기 다섯 번째 - 웹에서 모바일(안드로이드)로 다운로드


에셋 번들 사용하기 여섯 번째 - 로컬에서 모바일(안드로이드)로 다운로드


에셋 번들 사용하기 일곱 번째 - 안드로이드 장치에서 에셋 번들 다운로드

반응형

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

Unity3D - Asset bundle  (0) 2014.02.26
애셋 번들 정리  (0) 2014.02.26
AssetBundle (Pro Only)  (0) 2013.06.27
WWW.assetbundle  (0) 2013.06.27
어셋번들 (AssetBundle / BuildPipeline) 생성  (0) 2013.06.27
Posted by blueasa
, |


링크 : http://www.slideshare.net/seaousak/ss-18649816

반응형

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

awesome-unity - UNITY 관련 자료 모음 GitHub 프로젝트  (0) 2014.08.14
유니티 짱(Unity Chan)  (0) 2014.04.11
유니티 C# 관련 사이트  (0) 2012.10.24
유니티 튜토리얼 사이트  (0) 2012.10.24
Unity3D 관련 링크모음  (0) 2012.10.24
Posted by blueasa
, |

유티니 스크립트 기본 형태는


[UnityFolder]\Editor\Data\Resources\ScriptTemplates

안에 들어있습니다. 원하시는 형태로 바꿔 쓰세요 :) 

Unity 4.3 기준

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

맥은 Contents -> Resources -> ScriptTemplates 이네요



반응형
Posted by blueasa
, |

Text Gizmo

Unity3D/Tips / 2014. 2. 7. 16:41


  1. void OnDrawGizmos() {
  2.     Handles.Label(transform.position, transform.name);
  3. }


출처 : http://forum.unity3d.com/threads/27902-Text-Gizmo


참조 : http://tsubakit1.hateblo.jp/entry/2014/07/25/222017


참조 : http://docs.unity3d.com/Documentation/ScriptReference/Handles.Label.html


반응형
Posted by blueasa
, |


	// Simple editor Script that lets you save a scene while in play mode.
	// WARNING: All Undo posibilities are lost after saving the scene.

import UnityEditor; @MenuItem("Example/Save Scene while on play mode") static function EditorPlaying() { if(EditorApplication.isPlaying) { var sceneName : String = EditorApplication.currentScene; var path : String [] = sceneName.Split(char.Parse("/")); path[path.Length -1] = "Temp_" + path[path.Length-1]; var tempScene = String.Join("/",path); EditorApplication.SaveScene(tempScene); EditorApplication.isPaused = false; EditorApplication.isPlaying = false; FileUtil.DeleteFileOrDirectory(EditorApplication.currentScene); FileUtil.MoveFileOrDirectory(tempScene, sceneName); FileUtil.DeleteFileOrDirectory(tempScene); EditorApplication.OpenScene(sceneName); } }


출처 : http://docs.unity3d.com/Documentation/ScriptReference/EditorApplication-isPlaying.html

반응형

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

ObjectPool  (0) 2014.04.22
인스펙터 상의 GUI를 비활성화 시키고 싶을 때..  (0) 2014.04.02
Auto-Save Scene on Run  (0) 2014.01.12
Combine Children Extented (sources to share)  (0) 2013.01.17
SpriteManager  (0) 2012.11.24
Posted by blueasa
, |
Unity Crash

I’m sure it’s happened to every Unity developer with some frequency: You’re there working on something, totally in the flow and getting mad work done, and all of a sudden BAM! Unity crashes. Unfortunately for you, you’ve probably been so “in the zone” that you haven’t saved the last fifteen minutes or more of that work.

Yes, learning to press CTRL-S regularly is the most effective solution possible, but everyone forgets once in a while and the price for forgetting can sometimes be particularly high.

One thing that would help is if Unity could auto-save your scene for you, and there are a number of Unity editor extensions out there to help you, but it seems the majority of them are either more complicated than you need or don’t quite work right. That’s why I wrote the following script, which saves the current scene prior to entering Play mode when you press the Play button. It requires no configuration, and doesn’t distract you from the ultimately most important task of developing your game.  There are no editor windows to keep open, no menu options that need to be clicked.

If this sounds helpful to you, you can either copy the code below into a C# script file somewhere in an Editor folder in your project, or click the button below to download a zipped .unitypackage that can be easily imported into your project.


Download “AutoSave on Run Script”AutoSaveOnRun.zip – Downloaded 58 times – 2 kB

[code lang="csharp" toolbar="true" title="AutoSaveOnRun.cs"]
using System;
using System.IO;
using System.Collections;
using System.Collections.Generic;

using UnityEngine;
using UnityEditor;

[InitializeOnLoad]
public class AutoSaveOnRun
{

static AutoSaveOnRun()
{

EditorApplication.playmodeStateChanged = () =>
{

if( EditorApplication.isPlayingOrWillChangePlaymode && !EditorApplication.isPlaying )
{

Debug.Log( "Auto-Saving scene before entering Play mode: " + EditorApplication.currentScene );

EditorApplication.SaveScene();
EditorApplication.SaveAssets();
}

};

}

}
[/code]
I really do hope you find this as useful as I have!


출처 : http://www.daikonforge.com/dfgui/save-on-run/

반응형

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

ObjectPool  (0) 2014.04.22
인스펙터 상의 GUI를 비활성화 시키고 싶을 때..  (0) 2014.04.02
Save Scene while on play mode  (0) 2014.01.12
Combine Children Extented (sources to share)  (0) 2013.01.17
SpriteManager  (0) 2012.11.24
Posted by blueasa
, |

Log Viewer

Unity3D/Plugins / 2014. 1. 9. 14:06

가장 좋은 점은 실시간 디버깅이겠죠 역시..


일단 로그를 많이 사용들 하실텐데요..

로그를 보려면 결국 디바이스를 PC나 맥에 물려야 한다는 단점도 있습니다. 

내부적으로 인게임에서 로그를 볼 수 있는 뷰어를 만드시는 분들도 있으시겠죠.. 저도 만들려고 보니까 어셋스토어에 이미 잘 만들어진게 올라와 있더라구요..


로그 창을 띄우는 방법은 코드를 보니 터치를 한 상태에서 원을 그리는 제스쳐를 취하면 뜨는데.. 이게 Orbit Camera 같은 것을 회전시킬 때나 스크롤을 잡고 돌리다 보면 너무 자주 떠서.. 터치를 하나를 감지 하는 것에서 2개 터치 이상으로 변경하시는게 좋습니다.

장점은 팀원이 갑자기 이거 안돼요! 라고 할 때 평소에 로그를 꼼꼼히 남기셨으면 바로 팀원의 폰에서 로그를 보고 그 자리에서 문제가 무엇인지 확인이 가능합니다.. 어떤 상황인지 보고 원인 분석 하고 로그 남기고 하는 것보단 훨씬 편하더라구요..



출처 : 게임코디 Kell님


반응형

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

유니티 3D상에서 WebView 띄우기  (0) 2015.01.20
Loading DDS, BMP, TGA and other textures via WWW class in Unity3d  (0) 2014.04.11
Mobile Movie Texture  (0) 2013.12.03
원격 로그 플러그인  (0) 2013.11.20
IronPython  (0) 2013.10.06
Posted by blueasa
, |


링크 : http://idmanner.blog.me/70176641036




반응형
Posted by blueasa
, |

NGUI 업데이트(3.0.5 -> 3.0.7 f1)를 하다가 처음 보는 에러를 봤다.


Actor::updateMassFromShapes: Compute mesh inertia tensor failed for one of the actor's mesh shapes! Please change mesh geometry or supply a tensor manually!


안나던 에러가 왜나지? 하고 좀 보니..


UIPanel이 추가 된 곳엔 Rigidbody Component가 자동적으로 모두 붙어있다.

이게 뭐지..하고 UIPanel.cs를 열어봤더니 OnEnable() 함수에서 Rigidbody를 자동 추가하고 있다.

어디에 쓰려는거지 ㅡㅡ;;


아무튼 좀 찾아보니 위의 에러는 Rigidbody Component를 가진 트리에서 보통 Plane 때문에 난다고 한다.

정확히는 Plane을 생성했을 때, 자동으로 생성되는 Mesh Collider 때문이라고 한다.

Rigidbody가 들어가면 Physics Engine이 연산을 해야되는데, Plane의 Mesh Collider는 볼륨이 없기 때문에(Zero Volume)  Physics Engine이 계산을 못한다는 에러를 뱉는다고 한다.


Plane의 Mesh Collider를 지우고, Collider가 필요하다면 Box Collider로 대체하라고 한다.



참조 : http://answers.unity3d.com/questions/14497/actorupdatemassfromshape-error.html

반응형
Posted by blueasa
, |

Mobile Movie Texture

Unity3D/Plugins / 2013. 12. 3. 15:54

Full Version
Demo Version (Same api. Works on all platforms, Windows/OSX/iOS/Android, but watermarks the decoded video)

Play ogg theora encoded videos on a texture in your iPhone/iPad/Android projects.

Changes

Version 1.1.6 29/10/2012
  • Android: Support streaming from OBB automatically.


Version 1.1.5 23/08/2012
  • All platforms: Add a split alpha demo+shader to have a seperate alpha channel in your videos. Chroma keying works well for cutting out people but doesn't work well for a lot of semi transparent things, like particles. Split alpha works well for semi transparent stuff.
  • iOS/Android: Fixed the CrCb channels not lining up properly with videos that have half sized CrCb buffers. Thanks to android_dev for the example.
  • All platforms: Fixed video picture offsets. Thanks to Bryan @ Annosoft for the example.
  • All platforms: Fixed the infinite loop if you didn't have a onFinish delegate.
  • iOS/Android: About a 15% performance improvement up in mobile shaders


Version 1.1.4 21/04/2012
  • All platforms: Add frame skipping when video is decoding too slowly
  • All platforms: Add a color tintable transparent shader
  • All platforms: Fix some transparent tags in shaders


Version 1.1.3 7/02/2012
  • All Platforms: fix a looping bug
  • All Platforms: fix a warning in the chroma key editor
  • iOS: Add XCode 3.2.X version of the lib
  • Reorganise the package so the Plugins and Streaming Assets are in the correct place


Version 1.1.2 16/01/2011
  • All Platforms: Added a chroma key shader, editor and sample
  • iOS/Android: Fixed corruption issue with a GL.InvalidateState
  • All Platforms: Fixed 2 memory leaks in the native code
  • All Platforms: Fixed YCrCb naming in the shaders


Version 1.1.1 28/12/2011
  • iOS/Android: Work around a texture allocation bug in Unity if nothing else is drawing in the sample scene, by drawing a gui button


Version 1.1 27/12/2011
  • All: platforms now do color space conversion on the gpu. This resulted in a 2x performance increase in iOS and a 1.7x in Android, in my tests.
  • All: There is a big memory saving from not storing the converted 16bit rgb in ram. For example for the test movies, we saved NextPow2(640) * NextPow2(360) * 2 bytes = 1Mb
  • Android: now has cpu features detection and uses NEON instructions where available. iOS always uses NEON.
  • Windows/OSX: use power of 2 YCrCb textures for a massive speed up.
  • Windows/OSX: use SetPixels32 for another speed up.
  • All: Removing the color space conversion code saved ~10k
  • Android: Fixed a bug on when resuming
  • Windows/OSX: Hand code the YCrCb shader to work around bad cgsl compilation by Unity


Known issues

  • iOS: Only supports armv7 (not 3G)
  • Android: There is an intermittent crash in the Adreno 200 OpenGL driver on my Nexus one, it crashes deep within the Areno driver in my call to glTexSubImage2D, in rb_texture_find_eviction_candidate in __memcmp16.




Will post videos ASAP


MobileMovieTextureDemo1.1.1.unitypackage



출처 : http://forum.unity3d.com/threads/115885-Mobile-Movie-Texture

반응형

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

Loading DDS, BMP, TGA and other textures via WWW class in Unity3d  (0) 2014.04.11
Log Viewer  (0) 2014.01.09
원격 로그 플러그인  (0) 2013.11.20
IronPython  (0) 2013.10.06
UniPython  (0) 2013.10.06
Posted by blueasa
, |