Skip to content

Commit

Permalink
Add error model
Browse files Browse the repository at this point in the history
  • Loading branch information
vanjac committed Jun 17, 2024
1 parent 2be1326 commit e8fd14d
Show file tree
Hide file tree
Showing 4 changed files with 108 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ ios-build/
/Assets/GameAssets/3dtextures/*/*.png
/Assets/GameAssets/NASA/*.tif
/Assets/GameAssets/Footsteps/*.wav
/Assets/Resources/GameAssets/*.obj
/Assets/Resources/GameAssets/Models/*.obj
/Assets/Resources/Thumbnails/*.png

Expand Down
3 changes: 2 additions & 1 deletion Assets/Objects/Prop.cs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ public PropObject()
PropertyGUIs.Model),
});

private Mesh GetMesh() => Resources.Load<Mesh>("GameAssets/Models/" + modelName);
private Mesh GetMesh() => Resources.Load<Mesh>("GameAssets/Models/" + modelName)
?? Resources.Load<Mesh>("GameAssets/error_model");

private GameObject CreatePropObject()
{
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

103 changes: 103 additions & 0 deletions Assets/Resources/GameAssets/error_model.obj.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit e8fd14d

Please sign in to comment.