private void OnSerializingMethod(StreamingContext context) { SerializedEntity = SpaceEngineersApi.Serialize<MyObjectBuilder_Planet>(Planet); }