-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
.DS_Store | ||
.vs | ||
*.suo | ||
Library | ||
Temp | ||
UnityVS | ||
AssetStoreTools | ||
obj/* | ||
/Assets/AssetStoreTools.meta | ||
/Assets/UnityVS.meta | ||
/*.csproj | ||
*.o |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
using System.Collections; | ||
using System.Collections.Generic; | ||
using UnityEngine; | ||
|
||
public abstract class DllEnv | ||
{ | ||
public abstract IEnumerator Init(System.Action onDone); | ||
|
||
public abstract object InvokeStatic(string type, string method, object p1); | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
#if UNITY_EDITOR | ||
using UnityEditor; | ||
using UnityEngine; | ||
using System; | ||
using System.Text; | ||
using System.Collections.Generic; | ||
[System.Reflection.Obfuscation(Exclude = true)] | ||
public class ILRuntimeCLRBinding | ||
{ | ||
|
||
[MenuItem("ILRuntime/Generate CLR Binding Code")] | ||
static void GenerateCLRBinding() | ||
{ | ||
List<Type> types = new List<Type>(); | ||
types.Add(typeof(int)); | ||
types.Add(typeof(float)); | ||
types.Add(typeof(long)); | ||
types.Add(typeof(object)); | ||
types.Add(typeof(string)); | ||
types.Add(typeof(Array)); | ||
types.Add(typeof(Vector2)); | ||
types.Add(typeof(Vector3)); | ||
types.Add(typeof(Quaternion)); | ||
types.Add(typeof(GameObject)); | ||
types.Add(typeof(UnityEngine.Object)); | ||
types.Add(typeof(SkinnedMeshRenderer)); | ||
types.Add(typeof(Input)); | ||
types.Add(typeof(Transform)); | ||
types.Add(typeof(RectTransform)); | ||
types.Add(typeof(Time)); | ||
types.Add(typeof(UserClass)); | ||
types.Add(typeof(Debug)); | ||
//所有DLL内的类型的真实C#类型都是ILTypeInstance | ||
types.Add(typeof(List<ILRuntime.Runtime.Intepreter.ILTypeInstance>)); | ||
|
||
|
||
ILRuntime.Runtime.CLRBinding.BindingCodeGenerator.GenerateBindingCode(types, "Assets/ILRuntime/Generated"); | ||
} | ||
} | ||
#endif |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.