parityb1t Posted February 25, 2018 Share Posted February 25, 2018 (edited) 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 February 25, 2018 by parityb1t Link to comment https://forums.kleientertainment.com/forums/topic/88055-anything-wrong-with-this-onsaveonload-functions/ Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now