Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added Viewport to hide scene creation and destruction #5

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file not shown.
Empty file.
Binary file added .vs/FlappyBirdStyleGame/v17/.wsuo
Binary file not shown.
3 changes: 3 additions & 0 deletions .vs/ProjectSettings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we add .vs to .gitignore?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not going to lie, I'm totally new. Never used Unity before this. And was really just a test run so I can learn how to fix issue request and post a pull request to contribute. You can do anything you'd like. But tell me anything I did that I could improve. But definitely check my work 😬😅

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! This is a git ask, not a Unity one. By including .vs folder in the .gitignore, this will not be including in the pull request. The .vs file has files relevant to Visual Studio code, which are not required for proper execution of the Unity code.
Let me know if this doesn’t make sense

"CurrentProjectSetting": null
}
15 changes: 15 additions & 0 deletions .vs/VSWorkspaceState.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"ExpandedNodes": [
"",
"\\Assets",
"\\Assets\\Animations",
"\\Assets\\Prefabs",
"\\Assets\\Scenes",
"\\Assets\\Scripts",
"\\Assets\\Sounds",
"\\Assets\\Sprites",
"\\ProjectSettings"
],
"SelectedNode": "\\Assets\\Sounds\\death.mp3",
"PreviewInSolutionExplorer": false
}
Binary file added .vs/slnx.sqlite
Binary file not shown.
166 changes: 154 additions & 12 deletions Assets/Scenes/mainGame.unity
Original file line number Diff line number Diff line change
Expand Up @@ -137,10 +137,10 @@ Transform:
m_LocalPosition: {x: 0, y: -2.010522, z: 9.24}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children:
- {fileID: 659928302}
- {fileID: 1359823269}
- {fileID: 659928302}
m_Father: {fileID: 1047524684}
m_RootOrder: 2
m_RootOrder: 4
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!114 &85132382
MonoBehaviour:
Expand Down Expand Up @@ -241,12 +241,12 @@ Transform:
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 659928299}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 3.7001252, y: -0.25220454, z: 0}
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
m_LocalPosition: {x: 3.7001252, y: -0.25220442, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 85132381}
m_RootOrder: 0
m_RootOrder: 1
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1 &686664586
GameObject:
Expand Down Expand Up @@ -318,7 +318,7 @@ Transform:
- {fileID: 1660839600}
- {fileID: 2003715924}
m_Father: {fileID: 1047524684}
m_RootOrder: 5
m_RootOrder: 7
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1 &698643817
GameObject:
Expand Down Expand Up @@ -648,7 +648,7 @@ Transform:
m_LocalScale: {x: 7.56, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 1047524684}
m_RootOrder: 4
m_RootOrder: 6
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!61 &765433181
BoxCollider2D:
Expand Down Expand Up @@ -827,7 +827,7 @@ Transform:
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 1047524684}
m_RootOrder: 1
m_RootOrder: 3
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1 &945757894
GameObject:
Expand Down Expand Up @@ -923,7 +923,7 @@ Transform:
m_LocalScale: {x: 1, y: 11.53, z: 1}
m_Children: []
m_Father: {fileID: 1047524684}
m_RootOrder: 3
m_RootOrder: 5
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!114 &945757899
MonoBehaviour:
Expand All @@ -936,6 +936,76 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: 67ab72a81832d4c458b21934a8f9ce5c, type: 3}
m_Name:
m_EditorClassIdentifier:
--- !u!1 &1009808094
GameObject:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
serializedVersion: 5
m_Component:
- component: {fileID: 1009808095}
- component: {fileID: 1009808096}
m_Layer: 8
m_Name: viewport_r
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 4294967295
m_IsActive: 1
--- !u!4 &1009808095
Transform:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 1009808094}
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
m_LocalPosition: {x: 3.05, y: -0.03, z: 9.24}
m_LocalScale: {x: 1.078999, y: 4.1787615, z: 1}
m_Children: []
m_Father: {fileID: 1047524684}
m_RootOrder: 1
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!212 &1009808096
SpriteRenderer:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 1009808094}
m_Enabled: 1
m_CastShadows: 0
m_ReceiveShadows: 0
m_MotionVectors: 1
m_LightProbeUsage: 0
m_ReflectionProbeUsage: 0
m_Materials:
- {fileID: 10754, guid: 0000000000000000f000000000000000, type: 0}
m_StaticBatchInfo:
firstSubMesh: 0
subMeshCount: 0
m_StaticBatchRoot: {fileID: 0}
m_ProbeAnchor: {fileID: 0}
m_LightProbeVolumeOverride: {fileID: 0}
m_ScaleInLightmap: 1
m_PreserveUVs: 0
m_IgnoreNormalsForChartDetection: 0
m_ImportantGI: 0
m_SelectedEditorRenderState: 0
m_MinimumChartSize: 4
m_AutoUVMaxDistance: 0.5
m_AutoUVMaxAngle: 89
m_LightmapParameters: {fileID: 0}
m_SortingLayerID: 1804688513
m_SortingLayer: 1
m_SortingOrder: 0
m_Sprite: {fileID: 21300080, guid: aab37b51d898f764abaf04d75f0eb322, type: 3}
m_Color: {r: 0, g: 0, b: 0, a: 1}
m_FlipX: 0
m_FlipY: 0
m_DrawMode: 0
m_Size: {x: 1, y: 1}
m_AdaptiveModeThreshold: 0.5
m_SpriteTileMode: 0
m_WasSpriteAssigned: 1
--- !u!1 &1047524679
GameObject:
m_ObjectHideFlags: 0
Expand Down Expand Up @@ -1024,6 +1094,8 @@ Transform:
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children:
- {fileID: 2105998852}
- {fileID: 1009808095}
- {fileID: 1600444782}
- {fileID: 906839455}
- {fileID: 85132381}
- {fileID: 945757898}
Expand Down Expand Up @@ -1146,7 +1218,7 @@ Transform:
- {fileID: 2140057093}
- {fileID: 1287844559}
m_Father: {fileID: 1047524684}
m_RootOrder: 6
m_RootOrder: 8
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!114 &1293749024
MonoBehaviour:
Expand Down Expand Up @@ -1337,8 +1409,78 @@ Transform:
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 85132381}
m_RootOrder: 1
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1 &1600444781
GameObject:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
serializedVersion: 5
m_Component:
- component: {fileID: 1600444782}
- component: {fileID: 1600444783}
m_Layer: 8
m_Name: viewport_l
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 4294967295
m_IsActive: 1
--- !u!4 &1600444782
Transform:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 1600444781}
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
m_LocalPosition: {x: -3.01, y: 0.02, z: 9.24}
m_LocalScale: {x: 1.0106046, y: 4.2419667, z: 1}
m_Children: []
m_Father: {fileID: 1047524684}
m_RootOrder: 2
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!212 &1600444783
SpriteRenderer:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 1600444781}
m_Enabled: 1
m_CastShadows: 0
m_ReceiveShadows: 0
m_MotionVectors: 1
m_LightProbeUsage: 0
m_ReflectionProbeUsage: 0
m_Materials:
- {fileID: 10754, guid: 0000000000000000f000000000000000, type: 0}
m_StaticBatchInfo:
firstSubMesh: 0
subMeshCount: 0
m_StaticBatchRoot: {fileID: 0}
m_ProbeAnchor: {fileID: 0}
m_LightProbeVolumeOverride: {fileID: 0}
m_ScaleInLightmap: 1
m_PreserveUVs: 0
m_IgnoreNormalsForChartDetection: 0
m_ImportantGI: 0
m_SelectedEditorRenderState: 0
m_MinimumChartSize: 4
m_AutoUVMaxDistance: 0.5
m_AutoUVMaxAngle: 89
m_LightmapParameters: {fileID: 0}
m_SortingLayerID: 1804688513
m_SortingLayer: 1
m_SortingOrder: 0
m_Sprite: {fileID: 21300080, guid: aab37b51d898f764abaf04d75f0eb322, type: 3}
m_Color: {r: 0, g: 0, b: 0, a: 1}
m_FlipX: 0
m_FlipY: 0
m_DrawMode: 0
m_Size: {x: 1, y: 1}
m_AdaptiveModeThreshold: 0.5
m_SpriteTileMode: 0
m_WasSpriteAssigned: 1
--- !u!1 &1660839599
GameObject:
m_ObjectHideFlags: 0
Expand Down Expand Up @@ -1437,7 +1579,7 @@ Transform:
- {fileID: 698643818}
- {fileID: 1325426903}
m_Father: {fileID: 1047524684}
m_RootOrder: 7
m_RootOrder: 9
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1 &2003715922
GameObject:
Expand Down
1 change: 1 addition & 0 deletions ProjectSettings/GraphicsSettings.asset
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ GraphicsSettings:
- {fileID: 15106, guid: 0000000000000000f000000000000000, type: 0}
- {fileID: 10770, guid: 0000000000000000f000000000000000, type: 0}
- {fileID: 10782, guid: 0000000000000000f000000000000000, type: 0}
- {fileID: 16000, guid: 0000000000000000f000000000000000, type: 0}
m_PreloadedShaders: []
m_SpritesDefaultMaterial: {fileID: 10754, guid: 0000000000000000f000000000000000,
type: 0}
Expand Down
5 changes: 4 additions & 1 deletion ProjectSettings/TagManager.asset
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ TagManager:
- UI
-
-
-
- VP
-
-
-
Expand Down Expand Up @@ -48,3 +48,6 @@ TagManager:
- name: Default
uniqueID: 0
locked: 0
- name: VP
uniqueID: 1804688513
locked: 0