Skip to content

unity 使用

cqyajun edited this page Aug 9, 2019 · 1 revision

第三方资源:
动画:FinalIK、Mecanim Example Scene

摄像机:Cinemachine、Simple Waypoint System

AI:BehaviorDesigner和A* Pathfinding Project Pro

原型制作:Playmaker

后期处理:Post Processing Stack

着色器:Shader Forge,Amplify Shader Editor

效率:Fullscreen Editor、Hi erachy Pro、Easy Main Menu


功能:1、POST GET
2、uniwebview —内嵌框架
3、spritereander 动画播放
4、新手引导模块


unity 调用android Toast:

///


/// 弹出信息提示
///

/// 要弹出的信息
private void ShowAndroidToastMessage(string message)
{
AndroidJavaClass unityPlayer = new AndroidJavaClass(“com.unity3d.player.UnityPlayer”);
AndroidJavaObject unityActivity = unityPlayer.GetStatic(“currentActivity”);
if (unityActivity != null)
{
AndroidJavaClass toastClass = new AndroidJavaClass(“android.widget.Toast”);
unityActivity.Call(“runOnUiThread”, new AndroidJavaRunnable(() =>
{
AndroidJavaObject toastObject = toastClass.CallStatic(“makeText”, unityActivity,message, 0);
toastObject.Call(“show”);
}));
}
}
Clone this wiki locally