SwiftstructRealityFoundation

struct RealityFoundation.QueryPredicate

Structure

What a query’s scopes step through. Every node here can be matched — see the syntax.

Members 20

  1. funcstatic canInteract(on: RealityKit.Scene?) -> RealityFoundation.QueryPredicate<RealityKit.Entity>
  2. funcstatic has<A where A1: RealityKit.Component>(A1.Type) -> RealityFoundation.QueryPredicate<RealityKit.Entity>
  3. funcstatic hasAll<A, B, C, D where A1: RealityKit.Component, B1: RealityKit.Component, C1: RealityKit.Component, D1: RealityKit.Component>(A1.Type, B1.Type, C1.Type, D1.Type) -> RealityFoundation.QueryPredicate<RealityKit.Entity>
  4. funcstatic hasAll<A, B, C where A1: RealityKit.Component, B1: RealityKit.Component, C1: RealityKit.Component>(A1.Type, B1.Type, C1.Type) -> RealityFoundation.QueryPredicate<RealityKit.Entity>
  5. funcstatic hasAll<A, B where A1: RealityKit.Component, B1: RealityKit.Component>(A1.Type, B1.Type) -> RealityFoundation.QueryPredicate<RealityKit.Entity>
  6. funcstatic hasAny<A, B, C, D where A1: RealityKit.Component, B1: RealityKit.Component, C1: RealityKit.Component, D1: RealityKit.Component>(A1.Type, B1.Type, C1.Type, D1.Type) -> RealityFoundation.QueryPredicate<RealityKit.Entity>
  7. funcstatic hasAny<A, B, C where A1: RealityKit.Component, B1: RealityKit.Component, C1: RealityKit.Component>(A1.Type, B1.Type, C1.Type) -> RealityFoundation.QueryPredicate<RealityKit.Entity>
  8. funcstatic hasAny<A, B where A1: RealityKit.Component, B1: RealityKit.Component>(A1.Type, B1.Type) -> RealityFoundation.QueryPredicate<RealityKit.Entity>
  9. funcstatic isChild(of: RealityKit.Entity) -> RealityFoundation.QueryPredicate<RealityKit.Entity>
  10. funcstatic isChild(of: () -> RealityKit.Entity) -> RealityFoundation.QueryPredicate<RealityKit.Entity>
  11. funcstatic isDescendant(of: RealityKit.Entity) -> RealityFoundation.QueryPredicate<RealityKit.Entity>
  12. funcstatic isDescendant(of: () -> RealityKit.Entity) -> RealityFoundation.QueryPredicate<RealityKit.Entity>
  13. fieldlet enumerateBlock: @MainActor (RealityFoundation.QueryEnumerator) -> ()+0x20
  14. fieldlet evaluateBlock: @MainActor (A) -> Bool+0x0
  15. fieldlet makeInternalBlock: @MainActor () -> OpaquePointer?+0x10
  16. fieldlet performNativeEntityQueryBlock: (@MainActor (RealityKit.Scene) -> [RealityKit.Entity]?)?+0x30
  17. funcenumerate(using: RealityFoundation.QueryEnumerator) -> ()
  18. funcevaluate(value: A) -> Bool
  19. typealiastypealias Result = Swift.Bool
  20. typealiastypealias Value = A
struct QueryPredicate<A> {
    let evaluateBlock: @Swift.MainActor (_: A) -> Swift.Bool
    let makeInternalBlock: @Swift.MainActor () -> Swift.OpaquePointer?
    let enumerateBlock: @Swift.MainActor (_: any RealityFoundation.QueryEnumerator) -> ()
    let performNativeEntityQueryBlock: (@Swift.MainActor (_: RealityKit.Scene) -> [RealityKit.Entity]?)?

    func evaluate(value: A) -> Swift.Bool
    func enumerate(using: any RealityFoundation.QueryEnumerator)

    static func canInteract(on: RealityKit.Scene?) -> RealityFoundation.QueryPredicate<RealityKit.Entity>
    static func isDescendant(of: RealityKit.Entity) -> RealityFoundation.QueryPredicate<RealityKit.Entity>
    static func isDescendant(of: @escaping () -> RealityKit.Entity) -> RealityFoundation.QueryPredicate<RealityKit.Entity>
    static func has<A1>(_: A1.Type) -> RealityFoundation.QueryPredicate<RealityKit.Entity> where A1: RealityKit.Component
    static func hasAll<A1, B1, C1, D1>(_: A1.Type, _: B1.Type, _: C1.Type, _: D1.Type) -> RealityFoundation.QueryPredicate<RealityKit.Entity> where A1: RealityKit.Component, B1: RealityKit.Component, C1: RealityKit.Component, D1: RealityKit.Component
    static func hasAll<A1, B1, C1>(_: A1.Type, _: B1.Type, _: C1.Type) -> RealityFoundation.QueryPredicate<RealityKit.Entity> where A1: RealityKit.Component, B1: RealityKit.Component, C1: RealityKit.Component
    static func hasAll<A1, B1>(_: A1.Type, _: B1.Type) -> RealityFoundation.QueryPredicate<RealityKit.Entity> where A1: RealityKit.Component, B1: RealityKit.Component
    static func hasAny<A1, B1, C1, D1>(_: A1.Type, _: B1.Type, _: C1.Type, _: D1.Type) -> RealityFoundation.QueryPredicate<RealityKit.Entity> where A1: RealityKit.Component, B1: RealityKit.Component, C1: RealityKit.Component, D1: RealityKit.Component
    static func hasAny<A1, B1, C1>(_: A1.Type, _: B1.Type, _: C1.Type) -> RealityFoundation.QueryPredicate<RealityKit.Entity> where A1: RealityKit.Component, B1: RealityKit.Component, C1: RealityKit.Component
    static func hasAny<A1, B1>(_: A1.Type, _: B1.Type) -> RealityFoundation.QueryPredicate<RealityKit.Entity> where A1: RealityKit.Component, B1: RealityKit.Component
    static func isChild(of: RealityKit.Entity) -> RealityFoundation.QueryPredicate<RealityKit.Entity>
    static func isChild(of: @escaping () -> RealityKit.Entity) -> RealityFoundation.QueryPredicate<RealityKit.Entity>
}