stageEventType#

Fully qualified name: omni::usd::stageEventType

inline carb::cpp::optional<StageEventType> omni::usd::stageEventType(
carb::RString event,
carb::cpp::string_view *pContext = nullptr,
) noexcept#

Parses the StageEventType from a stage event RString.

Parameters:
  • event – The event name, typically generated from stageEventName().

  • pContext – May be nullptr. If not nullptr and a valid optional is returned, this will receive the USD context name parsed from the event name. If carb::cpp::nullopt is returned, the pointed at string_view is in an unspecified state.

Returns:

A valid optional containing the determined StageEventType if parsing is successful. Otherwise, carb::cpp::nullopt is returned to indicate that the given event name is not a valid stage event name.