So I made this setup for a generic item fetching objective :
As you can see the PropsToFetch array is filled with properties, but everytime I build Verse or reopen my project, it gets reset.
Building Verse shows this error : (even when I didn’t change anything to the file)
As you can see, array now contains object that I can’t edit anymore ? I think this only happens when Building Verse, if I reopen the project it will just fill in “None” values instead!
Here’s the code in case someone is interested in trying to help
colored_buddies_objective_prop := class<concrete>:
@editable
Prop : creative_prop = creative_prop{}
@editable
PickUpButton : button_device = button_device{}
var PlayerAttachedItem<private> : ?player_attached_item = false
GetPlayerAttachedItem()<transacts><decides>:player_attached_item = PlayerAttachedItem?
MakePlayerAttachedItem(Options: player_attached_item_options):player_attached_item=
NewAttachableItem := player_attached_item{
AttachedItem := Prop
Options := Options
}
set PlayerAttachedItem = option{NewAttachableItem}
return NewAttachableItem
Enable():void=
Prop.Show()
PickUpButton.Enable()
Disable():void=
Prop.Hide()
PickUpButton.Disable()
if(AttachedItem := GetPlayerAttachedItem[]):
AttachedItem.DetachFromPlayer(?ShouldResetTransform := true)
colored_buddies_objective := class<concrete>:
# UPDATE: tuple() don't expose correctly to the editor
@editable
PropsToFetch : []colored_buddies_objective_prop = array{}
colored_buddies_gamemode := class(creative_device, patrolling_ai_manager):
@editable
Objectives : []colored_buddies_objective = array{}