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:
CroakFang
2025-09-28 18:10:18 +08:00
committed by GitHub
parent 2f2f06eadc
commit d66991c2ef
33 changed files with 6620 additions and 390 deletions
@@ -12,10 +12,41 @@ public class UmaDatabaseEntry
public string Url;
public string Checksum;
public string Prerequisites;
public string Key;
private byte[] fKey;
[NonSerialized]
public List<UmaDatabaseEntry> CachedPrerequisites = null;
public byte[] FKey
{
get
{
if (fKey == null && !string.IsNullOrEmpty(Key))
{
var baseKeys = Config.Instance.ABKey;
int baseLen = baseKeys.Length;
int keysLen = baseLen * 8;
byte[] keys = new byte[keysLen];
for (int i = 0; i < baseLen; ++i)
{
byte[] keyBytes = BitConverter.GetBytes(long.Parse(Key));
if (!BitConverter.IsLittleEndian)
Array.Reverse(keyBytes);
byte b = baseKeys[i];
int baseOffset = i << 3; // i * 8
for (int j = 0; j < 8; ++j)
{
keys[baseOffset + j] = (byte)(b ^ keyBytes[j]);
}
}
fKey = keys;
}
return fKey;
}
}
public string FilePath
{
get