unity2019 接入第三方bundle资源,获取图片为空
作者:互联网
unity2019 版本后,接入的第三方bundle资源和framework都会移到UnityFramework.framework
下面,直接取bundle图片会获取到空的,需要添加“Frameworks/UnityFramework.framework/xxx_Bundle”。
NSString * const kUnityBundleNamePath = @"Frameworks/UnityFramework.framework/xxx_Bundle";
NSString *bundlePath = [[NSBundle mainBundle]pathForResource:kUnityBundleNamePath ofType:@"bundle"];
标签:kUnityBundleNamePath,UnityFramework,bundle,framework,NSString,Bundle,为空,unity201 来源: https://blog.csdn.net/baidu_34248947/article/details/120533859