stride3d / stride

Stride Game Engine (formerly Xenko)
https://stride3d.net
MIT License
6.45k stars 933 forks source link

Stride Prefab Selecting from array not working #2386

Open AbdallahFH opened 1 month ago

AbdallahFH commented 1 month ago

Release Type: Official Release

Version: 4.2.0.2188

Platform(s): Windows

Describe the bug When I create an array of prefabs in my code I can't select it in the editor

To Reproduce Steps to reproduce the behavior:

  1. create a script with a list of prefabs. https://youtu.be/7-qpzwTlSW8
IXLLEGACYIXL commented 1 month ago

as a work around to continue you can change it to a list

AbdallahFH commented 1 month ago

as a work around to continue you can change it to a list

Thanks, it's working

terrevce commented 1 month ago

I started looking into this and found that the "SetContentReference" command isn't in the command list for a prefab[] (which is required for CanAddChildren.) But I'm not really sure how this command list is populated for arrays.