How do we explore and use the Verse and Fortnite APIs?

Howdy! I’ve recently been familiarizing myself with Verse and UEFN, and as I start writing my first devices I’m struggling to utilize the internal APIs for game state in order to be able to do anything that actually affects gameplay in a meaningful way.

I’ve read through much of the Verse sections in the UEFN documentation, including going through the “Verse API Reference”: Verse API Reference

However, the vast majority of the pages in this section are essentially empty, even ones that seem fundamental like Agent or Player. Coding in Verse doesn’t seem to offer any meaningful auto-suggest or intellisense in VSCode when typing “.” after a variable name, at least with my current configuration. There seems to be no debugger to be able to inspect any object properties. Navigating to the definition of agent or player in VSCode lists no information other than that they are <epic_internal>.

This is making it challenging to figure out how to even get the most basic information from the game objects I’m working with. I’ve discovered some basic functions like GetPlayspace(), GetTeam(), etc. from reading through other people’s project code and forum posts - but this is quite limiting in terms of API exploration.

I’m hoping I’m missing something fundamental here; I can write all the Verse code I want to make my own independent functionality, but it doesn’t matter much if I can’t read from and set existing game properties from that code.

Where should I start to learn how to access the internal game APIs?
Thanks!

Most code editors have a way to see the Verse digests. In Visual Studio Code, you can explore the Verse digests in the explorer tab, which are full of comments that are more helpful than the vague Verse docs.

Screenshot 2024-02-02 082627

1 Like

How about when there are no comments?

CTRL + Click “agent” in VSCode brings you here

The online docs aren’t helpful
https://dev.epicgames.com/documentation/en-us/uefn/verse-api/versedotorg/simulation/agent

How can I know what methods and properties exist on agent? Or anything else.

the agent class itself doesn’t have anything BUT you can just CTRL+F to find other functions that utilize the agent e.g.

1 Like

Thanks for the reply.

It’s pretty painful with over 200 results, but it’s better than scouring other people’s code!