📄️ 1. Creating a Schema
A Schema is the foundation of your data. It acts as a contract, defining every Fact that a runtime Context will contain. This guide will walk you through the four essential steps to create and register a new Schema.
📄️ 2. Using Facts in Actors
Once you have a defined and registered Schema, you can use it in any Actor by adding and configuring the UFactsComponent. This component acts as the runtime container for your data.
📄️ 3. Reading & Writing Facts
With your UFactsComponent set up on an Actor, you can now interact with its data from any Blueprint. This is done primarily through two type-safe nodes: Get Fact by Tag and Update Fact by Tag.
📄️ 4. Creating & Using Queries
A Query in FactsDB is a powerful concept that allows you to define reusable, data-driven logical checks. Instead of building complex branches of ANDs and ORs in your Blueprints, you define the logic once in a Query Definition Asset and can then evaluate it anywhere using a single, clean node.
📄️ 5. Advanced: Blueprint Queries
You've learned how to create powerful, data-driven queries using the Query Definition Asset. This is the recommended approach for the vast majority of cases as it's efficient, readable by designers, and integrates with the FactsDB debugger.
📄️ 6. Creating & Using Actions
While a Query asks a stateless question about the world (Is this true?), an Action performs a complex, stateful process over time (Do this thing).