Beispiel #1
0
 void OnError(IContextualizedError obj)
 {
     Debug.LogError(obj.GetInnerException());
     loadObj = null;
     OnLoadFinish();
 }
 /// <summary>
 /// Called when any error occurs.
 /// </summary>
 /// <param name="obj">The contextualized error, containing the original exception and the context passed to the method where the error was thrown.</param>
 private void OnError(IContextualizedError obj)
 {
     Debug.LogError($"An error ocurred while loading your Model: {obj.GetInnerException()}");
 }
Beispiel #3
0
 /// <summary>
 /// For meshes...
 /// </summary>
 /// <param name="obj"></param>
 private void OnModelLoadError(IContextualizedError obj)
 {
     Notifications.Instance.ShowNotification("Unable to show mesh " + this.GetName(), obj.GetInnerException().Message);
 }