Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


Optimize

Optimizes the query by optimizing the underlying filtering graph.
Read time 1 minuteLast updated 11 days ago

Definition

Optimize(bool, bool)

Optimizes the query by optimizing the underlying filtering graph.
public void Optimize(bool propagateNotToLeaves, bool swapNotToRightHandSide)

Parameters

propagateNotToLeaves

Propagate "Not" operations to leaves, so only leaves can have "Not" operations as parents.

swapNotToRightHandSide

Swaps "Not" operations to the right-hand side of combining operations (i.e. "And", "Or"). Useful if a "Not" operation is slow.

Optimize(QueryGraphOptimizationOptions)

Optimizes the query by optimizing the underlying filtering graph.
public void Optimize(QueryGraphOptimizationOptions options)

Parameters

Optimization options.