/** * When a new object is created this function is called with a reference to the pb_Object * last built. */ static void OnProBuilderObjectCreated(pb_Object pb) { pb.gameObject.name = string.Format("pb_{0}{1}", pb.gameObject.name, pb.GetInstanceID()); }