응용프로그램 146

Unity2D_애니메이션

Unity2D 애니메이션 설정하기 저번 포스팅에서 분할한 이미지의 화살표를 클릭합니다. 하이러키창에 우클릭하고 Create Empty를 클릭하고 이름을 Player로 바꿔줍니다 Shift를 눌러서 첫번째 이미지와 끝 이미지를 클릭합니다. 선택된 그림을 만들어 놓은 Player 객체에 드래그하고 이름정하기 그리고 위쪽의 플레이버튼을 누르면 움직이는 캐릭터를 보실 수 있습니다.

Unity - RogueLike(7/14) - 장애물과 벽

Unity - RogueLike(7/14) - 장애물과 벽 using UnityEngine; using System.Collections; public class Wall : MonoBehaviour { public AudioClip chopSound1; public AudioClip chopSound2; public Sprite dmgSprite; public int hp = 3; private SpriteRenderer spriteRenderer; void Awake () { spriteRenderer = GetComponent (); } public void DamageWall (int loss) { SoundManager.instance.RandomizeSfx (chopSound1, chopSou..

Tistory블로그 스킨제작 - 본문제목 코딩

컨텐츠 타이틀 만들기 참조 : 'Tistory 블로그 치환자' 이번글의 목표는 본문제목을 아래와 같이 꾸미려고합니다. 본문글을 넣고 싶은 위치에 다음 코드를 삽입합니다. HTML | posted by 8줄 : 본문 글의 카테고리를 표시합니다. 11줄 : 본문 글의 제목을 표시합니다. 14줄 : 본문글의 작성일자 : 작성자를 표시합니다. CSS .titleWrap{ position:relative; margin-left:10px; margin-top:5px; width:98%; height:95px; font-family:"굴림"; } #title_left{ float:left; width:30px; height:85px; background-color:#faedd2; } #title_top{ float:..

응용프로그램 2017.01.27

Unity - 에러모음집

에러모음집 에셋스토어를 켜도 글자가 나오지 않을 때 우측상단에 언어설정 선택하기 에셋스토어를 켜도 아무것도 나오지 않거나 마우스올려야 나올 때 Edit → Project settings → Player → Use Direct3d 11 해제 또는 Auto Graphics API For Windows해제 `UnityEngine.GameObject.rigidbody' is obsolete: `Property rigidbody has been deprecated. Use GetComponent() instead. (UnityUpgradable)' The variable animator of Player_Ctrl has not been assigned. You probably need to assign the a..

Unity 그래픽 최적화 방법 참고

랜더링이란? 간단하게 컴퓨터가 그림을 그리는 행위. 랜더링 파이프라인 3D 이미지를 2D 래스터 이미지로 표현하기 위한 단계적인 방법'을 의미합니다. 최적화를 위해서는 어느정도의 기반지식을 이해하고 문제가 되는점을 캐치하는 능력이 필요하다고 함. CPU -> 랜더링 명령 가공 -> GPU Memory에 전달 -> GPU 연산시작 -> 연산결과 GPU 버퍼에 전달. 위와 같은 랜더링을 제어하는 컴퓨터 언어를 그래픽스 API라고 하는데 여러 기업들이 자신들만이 API를 제공하고 있다. Microsoft(DirectX) 크로노스 그룹(OpenGL, Vulkan[멀티 쓰레딩 차세대 언어]) 애플(Metal[멀티 쓰레딩 차세대 언어]) AMD(Mentle) 유니티에서는 기본적으로 크로스 플렛폼을 지원하므로 지정된..

Unity와 SQLite연동하기

SQLite와 Unity 연동하기 C:\Program Files\Unity\Editor\Data\Mono\lib\mono\2.0 여기에 있는System.Data.dll 과 Mono.Data.Sqlite 를 복사 Asset\Plugins에 붙여넣기 http://www.sqlite.org/download.html 여기에서 sqlite3.def, sqlite3.dll를 다운받기 Asset\Plugins에 넣기 Table 생성하기using UnityEngine;using System.Collections;using System;using System.Data;using Mono.Data.Sqlite; public class dbScript : MonoBehaviour { void Start() { string ..

유니티(Unity) - SQLite3 설치 및 세팅

SQLite 설치C#에서 SQLite을 사용하기 위해서는 http://system.data.sqlite.org 에서 해당 .NET 버젼에 맞는 바이너리를 다운 받아 설치하자. .NET 버전 알아보는 방법 Window + R -> regedit 엔터 아래의 폴더로 이동HKEY_LOCAL_MACHINE \ SOFTWARE \ Microsoft \ NET Framework Setup \ NDP \ v4 \ Full \ release 의 DEWORD값 확인 release의 DEWORD값 버전 378389 .NET Framework 4.5 378675 .NET Framework 4.5.1이 Windows 8.1 또는 Windows Server 2012 R2와 함께 설치됨 378758 .NET Framework 4..

Unity - 자습서 - 필수개념 - 인스펙터 사용자정의 빌딩

immunity we can create a custom inspector to control which data from our scripts is visible and how it is represented editor 면책 특권 스크립트를 사용하여 표시 할 데이터와 표시되는 데이터를 제어하는 ​​사용자 정의 관리자를 만들 수 있습니다. the ability to extend the editor in this way gives us a lot of power and flexibility scripts and the resulting workflow 이런 식으로 편집기를 확장 할 수 있는 능력은 우리에게 아주 강력하고 유연한 스크립트와 결과 워크 플로우를 제공합니다. let's say we had a ..