public void OnEnable() { oniDistanceField = Oni.CreateDistanceField(); // Check integrity after serialization, (re?) initialize if there's data missing. if (nodes != null) { Oni.SetDistanceFieldNodes(oniDistanceField, nodes, nodes.Length); } }