var objectFieldZero = new ObjectField {objectType = typeof(GameObject), value = _goZero}; objectFieldZero.RegisterValueChangedCallback(evt => _goZero = (GameObject) evt.newValue);