Jump to content

Anything wrong with this OnSave/OnLoad functions?


parityb1t

Recommended Posts

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

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.

×
  • Create New...