parityb1t Posted February 25, 2018 Share Posted February 25, 2018 I'm failing to implement OnSave OnLoad but have no idea whats wrong. I'm creating a custom prefab with the following in the main fn of the prefab. inst.OnSave = function (inst, data) data.qmatrices = "HELLO" end inst.OnLoad = function (inst, data) print("LOADING ") if data.qmatrices then print("great") end end Could anyone spot anything wrong? Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.
Please be aware that the content of this thread may be outdated and no longer applicable.