Version: 2022.2
언어: 한국어
배포 방법
다양한 스프라이트 아틀라스 시나리오 확인

늦은 바인딩

Late Binding is the name of a process in which you load or swap in the desired Sprite Atlas at run time via the Sprite Atlas API. This is necessary when the build doesn’t automatically load a prepared Sprite Atlas at run time (for example, when no Sprite Atlases are included in the build.

런타임 시점의 스프라이트 열거형

런타임 시점에 스프라이트 아틀라스의 콘텐츠를 검색해서 가져오려면 다음 단계를 따르십시오.

  1. Create a custom component that takes SpriteAtlas as a public variable.
  2. 스프라이트 아틀라스를 필드에 할당합니다.
  3. 에디터의 Play 모드를 시작합니다.
  4. 변수에 액세스하고 .GetSprites 프로퍼티를 호출하여 선택한 아틀라스에 패킹된 스프라이트 배열을 검색해서 가져옵니다.
배포 방법
다양한 스프라이트 아틀라스 시나리오 확인
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961