<!--
{
  "availability" : [
    "iOS: 17.0.0 -",
    "iPadOS: 17.0.0 -",
    "macCatalyst: 17.0.0 -",
    "macOS: 14.0.0 -",
    "tvOS: 26.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "ShaderGraph-Docs",
  "identifier" : "/documentation/ShaderGraph/realitykit/View-Direction-(RealityKit)",
  "metadataVersion" : "0.1.0",
  "role" : "ShaderGraph Node",
  "symbol" : {
    "kind" : "ShaderGraph Node",
    "modules" : [
      "ShaderGraph"
    ],
    "preciseIdentifier" : "Shader_ND_realitykit_viewdirection_vector3"
  },
  "title" : "View Direction (RealityKit)"
}
-->

# View Direction (RealityKit)

A vector from a position in the scene to the view reference point.

## Parameter Types

|Input  |Type  |
        |-------|------|
        |`Space`|String|

|Output|Type    |
        |------|--------|
        |`Out` |Vector3f|

## Parameter description

- `Space`: The space that indicates the camera’s position. Values for this parameter are `world`, `tangent`, `object`, or `model`; the default is `world`.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)