升级obi

This commit is contained in:
2026-01-22 22:08:21 +08:00
parent 120b8cda26
commit 20f14322bc
1067 changed files with 149894 additions and 29583 deletions

View File

@@ -1,8 +1,11 @@
using UnityEngine;
using System;
using System.Collections;
using System;
using System.Runtime.InteropServices;
#if (OBI_MATHEMATICS)
using Unity.Mathematics;
#endif
namespace Obi
{
[Serializable]
@@ -29,5 +32,10 @@ namespace Obi
this.z = x;
this.w = x;
}
#if (OBI_MATHEMATICS)
public static implicit operator VInt4(int4 i) => new VInt4(i.x, i.y, i.z, i.w);
public static implicit operator int4(VInt4 i) => new int4(i.x, i.y, i.z, i.w);
#endif
}
}