[Mono-ue] GetOverlappingActors

Michael Hutchinson m.j.hutchinson at gmail.com
Thu Jan 29 22:53:35 UTC 2015


Oh, yes, I was able to get it to work by tweaking the collision
settings for the object.

Here's an unfiltered query:

var noFilter = default (SubclassOf<UnrealEngine.CoreUObject.Object>);
IList<Actor> actors;
GetOverlappingActors (out actors, noFilter);

You can also use the filter, for example to find only overlapping Characters:

IList<Actor> characters;
var characterFilter = new SubclassOf<UnrealEngine.CoreUObject.Object>
(typeof (Character));
GetOverlappingActors (out actors, characterFilter);

In the next release, I'll add new overloads that will make it a lot cleaner:

IList<Actor> actors = GetOverlappingActors();
IList<Character> characters = GetOverlappingActors<Character>();

- m

On 29 January 2015 at 16:53, Ryan Burnham <nitro52 at iinet.net.au> wrote:
> Woops copied wrong url somehow.
> https://answers.unrealengine.com/questions/118305/overlapping-not-triggering-on-dynamic-toggled-coll.html
> ________________________________
> From: Ryan Burnham
> Sent: ‎30/‎01/‎2015 5:49 AM
> To: Michael Hutchinson; Antoine Dussarps
> Cc: mono-ue
> Subject: RE: [Mono-ue] GetOverlappingActors
>
> I had the same problem. I remember there being a issue where mono required
> the class filter parameter. I wasn't sure if this was causing a prob.
> I know you need to enable collision on both actors. I aslo found this which
> might have been my issue
>
> https://www.quickflix.co.nz/Catalogue/Movies
> ________________________________
> From: Michael Hutchinson
> Sent: ‎30/‎01/‎2015 4:53 AM
> To: Antoine Dussarps
> Cc: mono-ue
> Subject: Re: [Mono-ue] GetOverlappingActors
>
> I've tried to reproduce this and I don't get any results from
> GetOverlappingActors either in C# or in Blueprint. I suspect there's
> some subtlety to setting up the actors in the scene that's not
> immediately obvious.
>
> It looks like other people have the same issue with C++ and with
> Clueprint:
> https://answers.unrealengine.com/questions/113222/issues-with-bp-getoverlappingactors-not-returning.html
>
> - m
>
> On 29 January 2015 at 12:12, Antoine Dussarps <adussarps at gmail.com> wrote:
>>  Hi;
>>
>>  I'm kind of new to developping with mono and unreal, and I'm tryng to use
>> the basic method GetOverlappingactors from a capsule, but i cant get it
>> working properly, could someone send me and exemple of its use with mono?
>> I
>> would be realy glad.
>>
>>
>> Thanks
>> Regards
>> Antoine
>>
>>
>> _______________________________________________
>> Mono-ue mailing list
>> Mono-ue at lists.ximian.com
>> http://lists.ximian.com/mailman/listinfo/mono-ue
>>
>
>
>
> --
> Michael Hutchinson ~ https://mhut.ch
> _______________________________________________
> Mono-ue mailing list
> Mono-ue at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-ue



-- 
Michael Hutchinson ~ https://mhut.ch


More information about the Mono-ue mailing list