Zum Hauptinhalt springen

Unity

Schritt 1: Casdoor einrichten

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.

Schritt 2: Casdoor.Client importieren

Importieren Sie Casdoor.Client für .NET im Casdoor-dotnet-sdk.

Eine optionale Methode ist wie folgt:

  • git@github.com:casdoor/casdoor-dotnet-sdk.git
  • Führen Sie ConsoleApp im Sample-Ordner aus.
  • Holen Sie sich den Ordner /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

Schritt 3: Verwendung

Erfahren Sie, wie Sie das Casdoor.Client SDK für die Unity 3D-Mobilentwicklung verwenden, indem Sie sich casdoor-unity-example ansehen.

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

  • Melden Sie sich mit Benutzername und Passwort an:
iOSAndroid
iOS-gifAndroid-gif
  • Melden Sie sich mit der Casdoor-Webseite an:
iOSAndroid
iOS-gif-webAndroid-gif-web