Navigation
API > API/Plugins > API/Plugins/USDClasses > API/Plugins/USDClasses/UUsdMaterialAssetUserData
Syntax
UPROPERTY (EditAnywhere, BlueprintReadWrite, Category="USD")
TMap < FString , int32 > PrimvarToUVIndex
Remarks
In the context of our reference materials that just read a single texture for each material parameter, this describes the Unreal UV index that will be used for sampling by each USD primvar. The idea is to use this in combination with ParameterToPrimvar, in order to describe which UV index the material has currently assigned to each parameter. When assigning the material to meshes later, we'll compare this member with the UUsdMeshAssetImportData's own PrimvarToUVIndex to see if they are compatible or not, and if not spawn a new material instance that is. e.g. {'firstPrimvar': 0, 'st': 1, 'st1': 2}