Version: 2020.3
AssetDatabase 배칭
프리셋

특수 폴더 이름

You can usually choose any name you like for the folders you create to organise your Unity project. However, there are folder names that Unity reserves for special purposes. For example, you must place Editor scripts in a folder called Editor for them to work correctly.

이 페이지에는 Unity에서 사용하는 특수 폴더 이름의 전체 리스트가 포함되어 있습니다.

Assets

Assets 폴더는 Unity 프로젝트에서 사용하는 에셋이 포함되는 주 폴더입니다. 에디터 프로젝트 창의 콘텐츠는 에셋 폴더의 콘텐츠와 직접 연관됩니다. 대부분의 API 함수는 모든 것이 에셋 폴더 에 있다고 가정하므로 명시적으로 경로를 알려줄 필요는 없습니다. 그러나 일부 함수는 경로 이름에 에셋 폴더를 반드시 포함해야 합니다(예를 들어 AssetDatabase 클래스의 특정 함수).

Editor

Editor scripts add functionality to Unity during development, but aren’t available in builds at runtime. Scripts in a Editor folder run as Editor scripts, not runtime scripts.

에셋 폴더의 어디에서나 에디터 폴더를 여러 개 배치할 수 있습니다. 에디터 폴더나 에디터 폴더의 하위 폴더에 에디터 스크립트를 배치해야 합니다.

The exact location of an Editor folder affects the time at which its scripts are compiled relative to other scripts. See documentation on Special Folders and Script Compilation Order for a full description.

Use the EditorGUIUtility.Load function in Editor scripts to load Assets from a Resources folder within an Editor folder. These Assets are only loaded through Editor scripts, and are stripped from builds.

Note: Unity doesn’t allow components derived from MonoBehaviour to be assigned to GameObjects if the scripts are in the Editor folder.

Editor Default Resources

에디터 스크립트는 요구가 있을 때 즉시 에셋 파일을 로드하기 위해EditorGUIUtility.Load 함수를 사용합니다. 이 함수는 Editor Default Resources 라는 이름의 폴더에서 해당 에셋 파일을 검색합니다.

You can only have one Editor Default Resources folder and you must place it in Project root, directly within the Assets folder. Place the needed Asset files in this Editor Default Resources folder, or a subfolder within it. Always include the subfolder path in the path passed to the EditorGUIUtility.Load function if your Asset files are in subfolders.

Gizmos

Gizmos allow you to add graphics to the Scene View to help visualize design details that are otherwise invisible. The Gizmos.DrawIcon function places an icon in the Scene to act as a marker for a special object or position. You must place the image file used to draw this icon in a folder called Gizmos for the DrawIcon function to locate it.

You can only have one Gizmos folder and it must be placed in the root of the Project, directly within the Assets folder. Place the needed Asset files in this Gizmos folder or a subfolder within it. Always include the subfolder path in the path passed to the Gizmos.DrawIcon function if your Asset files are in subfolders.

Resources

씬에서 게임플레이에 사용할 에셋의 인스턴스를 만드는 대신 스크립트에서 온디멘드 방식으로 에셋을 로드할 수 있습니다. Resources 라고 하는 폴더에 에셋을 배치하면 됩니다. Resources.Load 함수를 사용하여 에셋을 로드해야 합니다.

에셋 폴더의 어디에나 리소스 폴더를 여러 개 배치할 수 있습니다. 필요한 에셋 파일을 리소스 폴더 또는 리소스 폴더의 하위 폴더에 배치해야 합니다. 에셋 파일이 하위 폴더에 있는 경우 항상 하위 폴더 경로를 Resources.Load 함수에 포함해야 합니다.

Note: If the Resources folder is an Editor subfolder, the Assets in it are loadable from Editor scripts, but are removed from builds.

Standard Assets

스탠다드 에셋 패키지를 임포트하면(메뉴: Assets > Import Package) 에셋은 __ 스탠다드 에셋__이라는 이름의 폴더에 위치하게 됩니다. 이 폴더는 에셋을 포함할 뿐만 아니라 스크립트 컴파일 순서에도 영향을 미칩니다. 자세한 내용은 특수 폴더와 스크립트 컴파일 순서 페이지를 참조하십시오.

You can only have one Standard Assets folder and it must be placed in the root of the Project, directly within the Assets folder. Place the needed Assets files in this Standard Assets folder or a subfolder within it.

StreamingAssets

You may want the Asset to be available as a separate file in its original format (although it’s more common to directly incorporate Assets into a build). For example, you need to access a video file from the filesystem to play the video on IOS using Handheld.PlayFullScreenMovie.

To include streaming Assets, do the following:

  1. Place the file in the StreamingAssets folder.
  2. The file remains unchanged when copied to the target machine, where it’s available from a specific folder.

See the page about Streaming Assets for further details.

You can only have one StreamingAssets folder and it must be placed in the root of the Project, directly within the Assets folder. Place the Assets files in the StreamingAssets folder or subfolder. Always include the subfolder path in the path used to reference the streaming asset if your Asset files are in subfolders.

Hidden Assets

During the import process, Unity ignores the following files and folders in the Assets folder (or a sub-folder within it):

  • 숨겨진 폴더
  • .’로 시작하는 파일 및 폴더
  • ~’로 끝나는 파일 및 폴더
  • cvs’라는 이름의 파일 및 폴더
  • 확장자가 .tmp 인 파일

This prevents importing special and temporary files created by the operating system or other applications.

AssetDatabase 배칭
프리셋
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961