아래 이미지의 PossibleObstacles 처럼, Asset Reference 를 연결할 수 있도록 Inspector 에 배열 노출시키려면?
아래처럼 코드 추가.
public AssetReference[] possibleObstacles;
이 외에도 여러 타입으로 강제할 수 있음.
AssetReferenceGameObject
AssetReferenceLabelRestriction
AssetReferenceSprite
AssetReferenceT<TObject>
AssetReferenceTexture
AssetReferenceTexture2D
AssetReferenceTexture3D
AssetReference
Class AssetReference | Package Manager UI website
Class AssetReference Reference to an addressable asset. This can be used in script to provide fields that can be easily set in the editor and loaded dynamically at runtime. Inheritance System.Object AssetReference Inherited Members System.Object.Equals(Sys
docs.unity3d.com
게임 개발에 필수적인 내용을 담는 명서들을 소개합니다.
<유니티 교과서 개정6판>(유니티 최신 버전) 구입 링크
https://link.coupang.com/a/be3P0t
유니티 교과서 개정6판
COUPANG
www.coupang.com
<리얼-타임 렌더링(REAL-TIME RENDERING) 4/e> 구입 링크
https://link.coupang.com/a/8VWas
리얼-타임 렌더링 4/e
COUPANG
www.coupang.com
<이득우의 게임 수학:39가지 예제로 배운다! 메타버스를 구성하는 게임 수학의 모든 것> 구입 링크
https://link.coupang.com/a/9BqLd
이득우의 게임 수학:39가지 예제로 배운다! 메타버스를 구성하는 게임 수학의 모든 것
COUPANG
www.coupang.com
유니티 에셋 스토어 링크
https://assetstore.unity.com?aid=1011lvz7h
에셋스토어
여러분의 작업에 필요한 베스트 에셋을 찾아보세요. 유니티 에셋스토어가 2D, 3D 모델, SDK, 템플릿, 툴 등 여러분의 콘텐츠 제작에 날개를 달아줄 다양한 에셋을 제공합니다.
assetstore.unity.com
(링크를 통해 도서/에셋 구입시 일정액의 수수료를 지급받습니다.)
'유니티 엔진 (Unity Engine)' 카테고리의 다른 글
[Unity] FOW(Fog of War) 전장의 안개 (0) | 2024.02.06 |
---|---|
[Unity] VR 기초, 방 탈출 게임 프로젝트 학습 코스 스크랩 (0) | 2024.01.30 |
[Unity] Inspector Custom Editor 에 추가 버튼, 삭제 버튼 추가 (0) | 2024.01.15 |
[Unity] Shader Keyword 셰이더 키워드로 동작 조건부 작성 (0) | 2023.12.20 |
[Unity] Editor SceneView 에서 카메라 조작하기 (fov, position, rotation) (0) | 2023.12.07 |
[Unity] Addressable.LoadAssetAsync() 동기/비동기 처리 (0) | 2023.12.04 |
[Unity] C# Finalizer 와 Garbage Collector 동작에 대한 정리 (0) | 2023.12.01 |