Add support for exporting prop, compatible with the new version, add the EnableRootMotion option (#143)
* update BillboardBuilder * add a new enum value * Add the EnableRootMotion option to support scenarios where the character is not within the camera view * Add support for exporting prop * update * compatible with the new version 2 * update --------- Co-authored-by: 左右看 <1918891542@qq.com>
This commit is contained in:
@@ -132,7 +132,16 @@ public class UmaAssetManager : MonoBehaviour
|
||||
}
|
||||
else
|
||||
{
|
||||
AssetBundle bundle = AssetBundle.LoadFromFile(filePath);
|
||||
AssetBundle bundle;
|
||||
if (string.IsNullOrEmpty(entry.Key) || long.Parse(entry.Key) == 0)
|
||||
{
|
||||
bundle = AssetBundle.LoadFromFile(filePath);
|
||||
}
|
||||
else
|
||||
{
|
||||
var data = AssetBundleDecryptor.DecryptFileToBytes(filePath, entry.FKey);
|
||||
bundle = AssetBundle.LoadFromMemory(data);
|
||||
}
|
||||
if (!bundle)
|
||||
{
|
||||
Debug.Log(filePath + " exists and doesn't work");
|
||||
|
||||
Reference in New Issue
Block a user