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"];