Unity Plugin

(1)Plugin import and Unity setup

Unpack the plug-in installation package of "XINGYING_Unity_Plugin_1.XXXX.unitypackage" and create the Unity Project (as shown in Figure 270). Right-click Assets in the project (as shown in Figure 271) and select "Import package".Import the unzipped Unity plugin (Figure 272).

For the first import, the log panel has a red compile error, warning to open project properties, setting to allow unsafe code. Check Edit->ProjectSettings->Player-Allow Unsafe code above Unity (Figure 273).

Select "Assets - Seeker - Scenes - SeekerExample" in the import package and double-click to open it (see Figure 274).

Click "Client-Seeker" in Hierachy panel and check to ensure that Host Ip is 10.1.1.198, SDK Ver is V2, and Bone Naming Convention is "XINGYING" (as shown in Figure 275).

Click on "Sapphiart@walk" from the scene to make sure the three modules in Inspector are checked.Make sure that the Name of "Skeleton Asset Name" in "Seeker Skeleton Animation(Script)" is consistent with the name of the human body in XINGYING (Figure 276);

Make sure that XINGYING software is playing, click the play button in Unity, and let the human body in XINGYING move, and the model in Unity will be driven and move synchronously (see Figure 277);

You can switch to the Scene view to view the model from different angles (Figure 278).

Last updated