[Solved] How to get EntityID of a slice spawned?

0

Hi @REDACTEDUSER

I found a bad issue 6-9 months ago , I forgot to report this earlier , this is related to spawn slices, NOW , I have a question ☺ I see a return value of slice type in Spawn Node.

How to get EntityID of a slice spawned ❓ 🧐 :thinking:

REMOVEDUPLOAD

已提问 4 年前190 查看次数
15 回答
0
已接受的回答

@REDACTEDUSER

We have these two methods, the first one you can get the entities in a slice by passing in the SliceInstantiationTicket REMOVEDUPLOAD

The second one is as an even, when the entities spawn, you can use this node to get the array of EntityIds:

REMOVEDUPLOAD

已回答 4 年前
0

@REDACTEDUSER

已回答 4 年前
0

The node in your screenshot is no longer part of the Spawner component, the spawn function in 1.25 should be similar to this one: (note: my screenshot is from an in-development build, so it's slightly different)

REMOVEDUPLOAD

Is this an image from an old graph?

已回答 4 年前
0

I mean nodes of entity group in node palette in 1.25 Unused and obsolete nodes in 1.25 ? 🧐 :thinking: REMOVEDUPLOAD

已回答 4 年前
0

[quote="LS1, post:5, topic:9207"] The node in your screenshot is no longer part of the Spawner component, the spawn function in 1.25 should be similar to this one: (note: my screenshot is from an in-development build, so it’s slightly different) [/quote]

Thank you , you solved my question in this topic 🙏 🌹

已回答 4 年前
0

[quote="_AhmadKarami, post:6, topic:9207, full:true"] I mean nodes of entity group in node palette in 1.25 Unused and obsolete nodes in 1.25 ? 🧐 :thinking:

REMOVEDUPLOAD [/quote]

@REDACTEDUSER

已回答 4 年前
0

GREAT @REDACTEDUSER REMOVEDUPLOAD

已回答 4 年前
0

@REDACTEDUSER 01- a type active node does not support EntityID variable 02- another type active node does support EntityID variable

Unused and obsolete nodes in 1.25 ?Or am I wrong?

REMOVEDUPLOAD

REMOVEDUPLOAD

已回答 4 年前
0

I found this issue in 2018 or 2019 , Another example, for destroy nodes and other nodes 🙂

REMOVEDUPLOAD

REMOVEDUPLOAD

已回答 4 年前
0

EntityID and Entity are not the same type.

The nodes you asked about were written with the idea of allowing users to create Entities and Components at runtime. That set of nodes were written a very long time and could be improved to work with EntityID instead of using Entity directly. For the moment, I wouldn't recommend using this functionality.

I will write a task to track this, thanks!

已回答 4 年前
0

Is It possible change out param of Slice to EntityID? Or make a node similar to what I posted here? Isn't this faster? Please see this shot 😊 👇 REMOVEDUPLOAD

已回答 4 年前
0

Unfortunately it's not as simple, a slice is a collection of entities, this is why the other nodes I mentioned return an Array<EntityID>. Also, there is some indeterminate amount of time between the Spawn call and the actual spawning of all of the slice's entities. This is why I recommend using the event node (OnEntitiesSpawned) as it will guarantee that all of the slice's entities are created and activated.

I will add a task to evaluate what improvements we could implement to make this easier.

已回答 4 年前
0

@REDACTEDUSER

已回答 4 年前
0

Yes, it's a lot of work, but also a lot of fun, I'm very happy you're using it and getting such nice results with it. Everything you're doing is helping us make Lumberyard better for everyone. Thanks!

已回答 4 年前
0

@REDACTEDUSER I'm also very happy to work with you, the great programmer.

I finding bugs, problems , suggest ideas, and create video tutorials for Lumberyard , 1.25 is really great but please go here and take a look at these my review about script canvas , if you have a bit time , Thank you again 🌹 😊

https://forums.awsgametech.com/t/my-feedback-from-ly-1-25-0/9154

已回答 4 年前

该帖子已关闭:已禁用添加新回答、评论和投票。