• 카테고리

    질문 & 답변
  • 세부 분야

    게임 프로그래밍

  • 해결 여부

    미해결

GetPrimaryAssetIdList 가 에셋을 읽어들이지 못하는 문제에 관한 내용입니다.

24.02.28 11:23 작성 조회수 97

0

GetPrimaryAssetIdList 의 인자가 ABItemData 가 아닌 다른 이름으로 지정하였을때 에셋을 읽어들이지 못합니다.

예를 들어서,

위와 같이 이름을 GEItemData 라고 한다면, 전혀 읽어들이지 못하는데 왜 이런 결과가 발생하는 건지 별 삽질을 다 해봐도 모르겠내요... 아 물론 GetPrimaryAssetId 오버라이드 하는것도 전부 변경하였습니다. 오로지 이름이 ABItemData 이어야만 에셋이 로딩이되네요.

답변 1

답변을 작성해보세요.

0

코드에서 GetPrimaryAssetId값을 바꾼 후에 애셋 생성도 다시 하셨는지요?

사실 일반적으로 애셋 타입 값은 베이스 U오브젝트 클래스 이름으로 하는게 정석입니다.

아래는 관련 소스코드 주석입니다.

/** An FName describing the logical type of this object, usually the name of a base UClass. For example, any Blueprint derived from APawn will have a Primary Asset Type of "Pawn". "PrimaryAssetType:PrimaryAssetName" should form a unique name across your project. */
FPrimaryAssetType PrimaryAssetType;

/** An FName describing this asset. This is usually the short name of the object, but could be a full asset path for things like maps, or objects with GetPrimaryId() overridden. "PrimaryAssetType:PrimaryAssetName" should form a unique name across your project. */
FName PrimaryAssetName;