跳到主内容

Unity

步骤1:部署Casdoor

Deploy Casdoor in production mode. See Server installation. Ensure the server is reachable and you can sign in (e.g. admin / 123). For a quick start, use the Casdoor demo.

步骤2:导入Casdoor.Client

Casdoor-dotnet-sdk中为.NET导入Casdoor.Client

一种可选的方法如下:

  • git@github.com:casdoor/casdoor-dotnet-sdk.git
  • 在Sample文件夹中运行ConsoleApp。
  • 获取/casdoor-dotnet-sdk/src/Casdoor.Client/bin/Debug/net462文件夹。

Import the net462 folder (or another target framework folder) into your Unity project as shown below.

import-sdk

步骤3:使用

通过查看casdoor-unity-example来了解如何使用Casdoor.Client SDK进行Unity 3D移动开发。

After running the casdoor-unity-example, the following interfaces appear:

  • 使用用户名和密码登录:
iOSAndroid
iOS-gifAndroid-gif
  • 使用Casdoor网页登录:
iOSAndroid
iOS-gif-webAndroid-gif-web