Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/FabianFG/CUE4Parse
Browse files Browse the repository at this point in the history
  • Loading branch information
MinshuG committed Apr 6, 2022
2 parents 22dbc30 + b337a88 commit d794697
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions CUE4Parse/UE4/Assets/Exports/Material/UMaterial.cs
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,11 @@ public override void Deserialize(FAssetArchive Ar, long validPos)
ReferencedTextures.Count > 0 ? ReferencedTextures[0] :
null;

public UTexture? GetTextureAtIndex(int index) =>
UE5ReferencedTextures.Count >= index ? UE5ReferencedTextures[index] :
ReferencedTextures.Count >= index ? ReferencedTextures[index] :
null;

private void ScanForTextures(FAssetArchive Ar)
{
// !! NOTE: this code will not work when textures are located in the same package - they don't present in import table
Expand Down

0 comments on commit d794697

Please sign in to comment.