[Mono-ue] How do you use GetOverlappingActors?

Ryan Burnham nitro52 at iinet.net.au
Mon Jan 5 11:50:50 UTC 2015


Hi All,

 

So I'm trying to convert the following C++ code

 

       TArray<AActor*> CollectedActors;

       CollectionSphere->GetOverlappingActors(CollectedActors);

 

 

Where CollectionShpere is defined as

 

       UPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category = Power)

              TSubobjectPtr<class USphereComponent> CollectionSphere;

 

 

 

 

So I was thinking it would be something like this

            IList<Actor> collectedActors;
            CollectionSphere.GetOverlappingActors(out collectedActors); 

 

But GetOverlappingActors only has an overload with 2 parameters. 

 

public unsafe void GetOverlappingActors(out IList<Actor> overlappingActors,
SubclassOf<Object> classFilter) 

 

How do you get the class filter. These SubclassOf and Subobject wrappers
seem a bit odd to me. 

 

Regards

Ryan

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/mono-ue/attachments/20150105/de4e4d52/attachment.html>


More information about the Mono-ue mailing list