<!--
{
  "documentType" : "article",
  "framework" : "USD",
  "identifier" : "/documentation/USD/proximitytocameratrigger",
  "metadataVersion" : "0.1.0",
  "role" : "collectionGroup",
  "title" : "ProximityToCameraTrigger"
}
-->

# ProximityToCameraTrigger

A trigger that fires when the camera crosses the distance threshold of an object.

## Discussion

The runtime fires this trigger one time when the distance threshold it specifies is met. The runtime can fire the trigger again only if the user moves away from the threshold and then returns.

### Declaration

```swift
class Preliminary_Trigger "ProximityToCameraTrigger"
```

## Topics

### Properties

[info:id](/documentation/USD/info-id)

The action’s unique identifier.

[affectedObjects](/documentation/USD/affectedobjects)

A list of prims that respond to the notification.

[distance](/documentation/USD/distance)

A threshold that measures the user’s proximity to one or more prims.



---

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)