UE4从材质到纹理图片的原始尺寸

       UMaterialInterface *MI = ModelActor->GetSingleMaterial();
        UMaterialInstanceDynamic *MID = Cast(MI);
        UTexture *Texture;
        if (MID->GetTextureParameterOverrideValue("自定义纹理节点字符串", Texture))
        {
            UTexture2D *Texture2D = Cast(Texture);
            float Width = Texture2D->GetSizeX();
            float Height = Texture2D->GetSizeY();

        }

你可能感兴趣的:(遇到的技术问题)