Camera, objects, and impact events reference

These contracts describe the released UCC 3.2.0 and Opsive Shared runtime. Match the target object, event name, parameter types and parameter order to the publisher in your installed version.

Camera, objects, and impact events

Camera and view types

Event Parameters Runtime use
OnAnchorOffsetUpdated () The Camera Controller anchor offset changed during Play Mode.
OnCameraAttachCharacter GameObject The Camera Controller attached a character.
OnCameraChangePerspectives bool The camera changed to first person (true) or third person (false).
OnCameraChangeViewTypes ViewType, bool A View Type was deactivated or activated.
OnCameraImmediatePosition () The camera should move to its target position immediately.
OnCameraPositionalForce Vector3 Adds positional force to the attached Camera Controller.
OnCameraRotationalForce Vector3 Adds rotational force to the attached Camera Controller.
OnCameraWillChangePerspectives bool The camera is about to change perspective.
OnCameraZoom bool Camera zoom activated or deactivated.
OnRPGViewTypeStartForcedRotation () RPG view forced rotation began.
OnRPGViewTypeStartFreeMovement () RPG view free movement began.
OnRPGViewTypeStopForcedRotation () RPG view forced rotation ended.
OnRPGViewTypeStopFreeMovement () RPG view free movement ended.
OnThirdPersonViewTypeStepZoom float A third-person view requests a zoom step.
OnTryRecenterTracking () A global event requests tracking recentering after a view rotation change.

Objects, impacts, and monitors

Event Parameters Runtime use
OnObjectDetected GameObject, bool A detected object receives the interacting character and selected state.
OnObjectImpact ImpactCallbackContext The impacted object receives the impact context.
OnObjectImpactSourceCallback ImpactCallbackContext The impact originator receives its source callback context.
OnObjectPickedUp ObjectPickup A character picked up an Object Pickup.
OnShowUI bool Character monitors should show or hide their UI.

Event registration, cleanup and verification.