Jump to content

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?

Edited by parityb1t

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...