Raft Modding
Raft Modding
Back to raftmodding.com
Welcome to the RaftModding docs!
TUTORIALS
How to install RaftModLoader
How to configure your antivirus
How to install a mod
Mods in multiplayer
How to run multiple raft instances
MODDING TUTORIALS
How to create a mod project
How to create an AssetBundle
How to create console commands
Harmony basics
Getting access to the modding repositories
Client - API
RAPI
Mod Events
Client - Code Examples
Reading private variables
Modifying private variables
Adding private variables
Accessing the player instance
Giving items to a player
Dropping/Spawning items
Printing to the console
Execute code on world loading
Get the current SteamID
Get the current username
Get selected hotbar item
Website
Slugs
Server - API
Coming soon!
Server - Code examples
Coming soon!
Powered by GitBook

Printing to the console

To print to the console we use the the unity Debug class.

​
Debug.Log("Simple log");
Debug.LogError("This is an error...");
Debug.LogWarning("This is a warning...")
Debug.Log(new Vector3(0,0,0));
Debug.Log(myvalue);
Client - Code Examples - Previous
Dropping/Spawning items
Next - Client - Code Examples
Execute code on world loading
Last updated 7 months ago
Edit on GitHub