Using ParaSpace and Unity API
You can use many different APIs to realize the features you are looking for. You can use most of the Unity APIs and ParaSpace APIs.
Unity API
If you are a Unity beginner, please go through the Unity document first: Important Classes
If you are quite familiar with Unity already, or you only need some references when using it, please go to: Unity Scripting Reference
Please refer to the whitelist for the usable Unity APIs: Whitelisted Unity API
ParaSpace API
In this section, we are going to cover some of the most commonly used and important ParaSpace classes while writing scripts.
Listed below are some ParaSpace classes presented as a starting point for understanding the basics of ParaSpace scripting. It is recommended that you familiarize yourself with the APIs listed in order. For in-depth knowledge of all APIs and parameter details, please go to: ParaSpace API Reference.
Para Script | The basic component for running Lua scripts. - Contains the basic event functions of MonoBehavior and a huge number of ParaSpace event functions; for more information about event functions, please refer to Event Functions. - Contains some commonly used functions such as obtaining the current object's ownership, requesting ownership, and sending messages, etc. |
ParaPlayer | Player class, which can be used to define a player object. - Contains some basic properties of the player such as User ID, Nickname, Photo, Location, etc. - Contains some functions that control the player such as setting the speed and changing actions, etc. - For player management, tag-related APIs are useful for assigning some data to players. For more details about tags, please refer to: [Knowing the Character](doc: Knowing the Character) |
ParaPlayerService | Player management class. - It is possible to query and get player objects in the current scene in a variety of ways. |
Updated almost 2 years ago