<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "macCatalyst: 27.0.0 -",
    "macOS: 27.0.0 -",
    "tvOS: 27.0.0 -",
    "visionOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "RealityKit",
  "identifier" : "/documentation/RealityKit/PortalMaterial/parameterHandle(name:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "RealityKit"
    ],
    "preciseIdentifier" : "s:17RealityFoundation14PortalMaterialV15parameterHandle4nameAA0D10ParametersV0F0VSS_tFZ"
  },
  "title" : "parameterHandle(name:)"
}
-->

# parameterHandle(name:)

Returns a handle for the parameter with the given name.

```
static func parameterHandle(name: String) -> MaterialParameters.Handle
```

## Parameters

`name`

The name of the parameter as declared in the shader
graph.

## Return Value

A handle that identifies the parameter on any
[`PortalMaterial`](/documentation/RealityKit/PortalMaterial) whose program declares an input with the given
name.

## Discussion

Handles bypass the per-call string lookup that
[`setParameter(name:value:)`](/documentation/RealityKit/PortalMaterial/setParameter(name:value:)) and [`getParameter(name:)`](/documentation/RealityKit/PortalMaterial/getParameter(name:)) perform. In
performance-sensitive code that updates the same parameter every frame,
obtain a handle once during setup and reuse it.

---

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)