QORPO Blog / AI & Development

AI-Assisted Blueprint Functions: Pure Does Not Mean Cached

Q
QORPO Studio6 December 2026 · 4 min read
Concept render of the silver QORPO armored character beside a mint conduit branching toward two orange doorways
Concept illustration created for this article, not a gameplay screenshot.

An Unreal Blueprint pure function should supply a value without changing state. Its pure designation does not promise that a costly result is cached. When reviewing AI-assisted code, inspect what the function does, where its output is required and whether the caller needs a fresh value or a deliberate snapshot.

That review is about behavior, not the color or compactness of the node. A short graph can still hide repeated work or an operation that belongs on an explicit execution path.

Read the function body before trusting its label

Epic distinguishes pure functions from functions that can modify state. Start with that contract rather than accepting a generated name such as GetCandidate as proof of what happens inside.

Look for writes to members, changes to other objects and helper calls whose effects are unclear. A query that quietly consumes a resource does more than report the current state.

Our AI-generated code review guide begins with the intended behavior. The same principle applies here: explain what the function is allowed to change before deciding how it should be exposed.

Do not assume one visible node means one stored result

Epic's UFunction guidance warns that pure functions do not cache their results. Pure data connections should therefore not be treated as an implicit memoization feature.

Inspect how the data is used. If a nontrivial operation feeds several decisions, understand when those consumers request it in the actual graph rather than estimating execution from the number of visible query nodes.

Avoid turning that guidance into a universal numeric call-count claim for every graph. The useful engineering step is to inspect and measure the concrete execution path in the project's engine version.

Decide whether the action needs freshness or a snapshot

A value can be correct when read and still become inappropriate later. State may change between the time a choice is presented and the time it is confirmed.

A model interaction illustrates the choice. A menu displays a candidate item, then the player confirms it. Should confirmation use the previously displayed candidate, or find the current candidate again? Both are possible designs, but they produce different expectations.

Record that requirement before asking an assistant to simplify the graph. Replacing several queries with one stored value may alter freshness; replacing a stored value with repeated queries may alter consistency.

Put deliberate state changes on a clear path

If a function spends an item, advances progression or changes a selection, make that effect visible in the design. Do not hide a state-changing operation behind an interface that readers interpret as a harmless query.

That does not require making every getter impure. It requires choosing the interface according to the actual contract and keeping the body consistent with it.

For a model review, separate FindCandidate from ConfirmCandidate. The first describes a query, while the second name makes an action explicit. Those names are illustrative, not a shipped QORPO API or a complete implementation.

Build a fixture around the expected observation

Use a small controlled case in which the source state can change. Decide what each consumer should observe, then compare the graph's result with that expectation.

Our expected-result fixture guide explains why the expected identity or value should be written before the new implementation is run. Otherwise a test can merely repeat the assistant's assumption.

If performance is the concern, capture the relevant work rather than claiming that a graph rewrite must be faster. The repeatable Insights bookmark guide offers an evidence pattern for identifying the observation being compared.

Keep random selection separate from a stable answer

A query involving randomness deserves particular attention when the caller expects one consistent choice. The question is not only whether the node changes an object's state; it is whether repeated evaluation can produce a different observation.

Define when a choice is made and how long it remains the choice. The random stream review addresses the separate need to record the seed and call sequence when reproducibility matters.

Do not infer that a particular random helper has been tested from this example. The concrete project graph, function implementation and expected behavior still need inspection.

Common questions

Does BlueprintPure automatically cache an expensive calculation?

No. Epic's documentation explicitly warns against assuming cached results for pure functions.

Should every pure function become an executed action?

No. Pure queries are useful. Choose an explicit action when the function's behavior actually changes state.

Is a stored value always a better replacement?

No. A snapshot can become stale. Decide whether the feature needs a stable earlier answer or a fresh current one.

Was this validated in a QORPO gameplay build?

No new Unreal gameplay test was performed. The examples describe proposed review fixtures.

Sources and next step

See Epic's function guide and UFunction documentation, checked on 6 December 2026. Follow QORPO studio work for product changes with their own implementation and release evidence.