RealDocs

AActor::GetRayTracingGroupId

function Engine Blueprint Since 5.0
#include "GameFramework/Actor.h"
Access: public Specifiers: UFUNCTIONBlueprintCallableconst

Description

Returns the ray tracing group ID assigned to this actor. A default/invalid value indicates no explicit group has been set.

Caveats & Gotchas

  • An ID of INDEX_NONE (−1) means no group has been explicitly assigned; components will fall back to their own IDs or the renderer default.
  • This getter reflects only the actor-level ID. Components may report a different ID if they have their own override set.

Signature

ENGINE_API int32 GetRayTracingGroupId() const;

Return Type

int32

Example

Read group ID before conditionally updating it C++
if (MyActor->GetRayTracingGroupId() == INDEX_NONE)
{
    MyActor->SetRayTracingGroupId(DesiredGroupId);
}

Version History

Introduced in: 5.0

Version Status Notes
5.6 stable

Feedback

Was this helpful?

Suggest an edit

Select a field above to begin editing.