Skip to content
This repository has been archived by the owner on Sep 17, 2022. It is now read-only.

Commit

Permalink
Fixed Cube Prefab
Browse files Browse the repository at this point in the history
Following bugs where also fixed :-
Cube faces where not accomadating more 1 digit values
Auto rotation wasnt working as required
  • Loading branch information
Vin-dictive committed Mar 10, 2021
1 parent 9881504 commit 5aab31f
Show file tree
Hide file tree
Showing 6 changed files with 79 additions and 46 deletions.
96 changes: 54 additions & 42 deletions Assets/Resources/Cube.prefab
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ MeshRenderer:
m_RenderingLayerMask: 1
m_RendererPriority: 0
m_Materials:
- {fileID: 2180264, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2}
- {fileID: 8963545961531463164, guid: db8e5d852fafb3f4ab85b612e8d470ce, type: 2}
m_StaticBatchInfo:
firstSubMesh: 0
subMeshCount: 0
Expand Down Expand Up @@ -106,8 +106,9 @@ MonoBehaviour:
m_Calls: []
m_text: 1
m_isRightToLeft: 0
m_fontAsset: {fileID: 11400000, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2}
m_sharedMaterial: {fileID: 2180264, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2}
m_fontAsset: {fileID: 11400000, guid: db8e5d852fafb3f4ab85b612e8d470ce, type: 2}
m_sharedMaterial: {fileID: 8963545961531463164, guid: db8e5d852fafb3f4ab85b612e8d470ce,
type: 2}
m_fontSharedMaterials: []
m_fontMaterial: {fileID: 0}
m_fontMaterials: []
Expand All @@ -131,12 +132,12 @@ MonoBehaviour:
m_faceColor:
serializedVersion: 2
rgba: 4294967295
m_fontSize: 10
m_fontSize: 8.3
m_fontSizeBase: 10
m_fontWeight: 400
m_enableAutoSizing: 0
m_fontSizeMin: 18
m_fontSizeMax: 72
m_enableAutoSizing: 1
m_fontSizeMin: 1
m_fontSizeMax: 10
m_fontStyle: 0
m_HorizontalAlignment: 2
m_VerticalAlignment: 256
Expand Down Expand Up @@ -173,6 +174,7 @@ MonoBehaviour:
m_hasFontAssetChanged: 0
m_renderer: {fileID: 7130408755992057462}
m_maskType: 0
_SortingLayer: 0
_SortingLayerID: 0
_SortingOrder: 0
--- !u!1 &2551204902414856791
Expand Down Expand Up @@ -231,7 +233,7 @@ MeshRenderer:
m_RenderingLayerMask: 1
m_RendererPriority: 0
m_Materials:
- {fileID: 2180264, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2}
- {fileID: 8963545961531463164, guid: db8e5d852fafb3f4ab85b612e8d470ce, type: 2}
m_StaticBatchInfo:
firstSubMesh: 0
subMeshCount: 0
Expand Down Expand Up @@ -281,8 +283,9 @@ MonoBehaviour:
m_Calls: []
m_text: '[1]'
m_isRightToLeft: 0
m_fontAsset: {fileID: 11400000, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2}
m_sharedMaterial: {fileID: 2180264, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2}
m_fontAsset: {fileID: 11400000, guid: db8e5d852fafb3f4ab85b612e8d470ce, type: 2}
m_sharedMaterial: {fileID: 8963545961531463164, guid: db8e5d852fafb3f4ab85b612e8d470ce,
type: 2}
m_fontSharedMaterials: []
m_fontMaterial: {fileID: 0}
m_fontMaterials: []
Expand All @@ -306,12 +309,12 @@ MonoBehaviour:
m_faceColor:
serializedVersion: 2
rgba: 4294967295
m_fontSize: 8
m_fontSize: 8.3
m_fontSizeBase: 8
m_fontWeight: 400
m_enableAutoSizing: 0
m_fontSizeMin: 18
m_fontSizeMax: 72
m_enableAutoSizing: 1
m_fontSizeMin: 0
m_fontSizeMax: 10
m_fontStyle: 0
m_HorizontalAlignment: 1
m_VerticalAlignment: 256
Expand Down Expand Up @@ -348,6 +351,7 @@ MonoBehaviour:
m_hasFontAssetChanged: 0
m_renderer: {fileID: 3196528726217517222}
m_maskType: 0
_SortingLayer: 0
_SortingLayerID: 0
_SortingOrder: 0
--- !u!1 &3357462402450317513
Expand Down Expand Up @@ -505,7 +509,7 @@ MeshRenderer:
m_RenderingLayerMask: 1
m_RendererPriority: 0
m_Materials:
- {fileID: 2180264, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2}
- {fileID: 8963545961531463164, guid: db8e5d852fafb3f4ab85b612e8d470ce, type: 2}
m_StaticBatchInfo:
firstSubMesh: 0
subMeshCount: 0
Expand Down Expand Up @@ -555,8 +559,9 @@ MonoBehaviour:
m_Calls: []
m_text: 1
m_isRightToLeft: 0
m_fontAsset: {fileID: 11400000, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2}
m_sharedMaterial: {fileID: 2180264, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2}
m_fontAsset: {fileID: 11400000, guid: db8e5d852fafb3f4ab85b612e8d470ce, type: 2}
m_sharedMaterial: {fileID: 8963545961531463164, guid: db8e5d852fafb3f4ab85b612e8d470ce,
type: 2}
m_fontSharedMaterials: []
m_fontMaterial: {fileID: 0}
m_fontMaterials: []
Expand All @@ -580,12 +585,12 @@ MonoBehaviour:
m_faceColor:
serializedVersion: 2
rgba: 4294967295
m_fontSize: 10
m_fontSize: 8.3
m_fontSizeBase: 10
m_fontWeight: 400
m_enableAutoSizing: 0
m_fontSizeMin: 18
m_fontSizeMax: 72
m_enableAutoSizing: 1
m_fontSizeMin: 0
m_fontSizeMax: 10
m_fontStyle: 0
m_HorizontalAlignment: 2
m_VerticalAlignment: 256
Expand Down Expand Up @@ -622,6 +627,7 @@ MonoBehaviour:
m_hasFontAssetChanged: 0
m_renderer: {fileID: 6997106965992526475}
m_maskType: 0
_SortingLayer: 0
_SortingLayerID: 0
_SortingOrder: 0
--- !u!1 &5161914759529451729
Expand Down Expand Up @@ -680,7 +686,7 @@ MeshRenderer:
m_RenderingLayerMask: 1
m_RendererPriority: 0
m_Materials:
- {fileID: 2180264, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2}
- {fileID: 8963545961531463164, guid: db8e5d852fafb3f4ab85b612e8d470ce, type: 2}
m_StaticBatchInfo:
firstSubMesh: 0
subMeshCount: 0
Expand Down Expand Up @@ -730,8 +736,9 @@ MonoBehaviour:
m_Calls: []
m_text: 1
m_isRightToLeft: 0
m_fontAsset: {fileID: 11400000, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2}
m_sharedMaterial: {fileID: 2180264, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2}
m_fontAsset: {fileID: 11400000, guid: db8e5d852fafb3f4ab85b612e8d470ce, type: 2}
m_sharedMaterial: {fileID: 8963545961531463164, guid: db8e5d852fafb3f4ab85b612e8d470ce,
type: 2}
m_fontSharedMaterials: []
m_fontMaterial: {fileID: 0}
m_fontMaterials: []
Expand All @@ -755,12 +762,12 @@ MonoBehaviour:
m_faceColor:
serializedVersion: 2
rgba: 4294967295
m_fontSize: 10
m_fontSize: 8.3
m_fontSizeBase: 10
m_fontWeight: 400
m_enableAutoSizing: 0
m_fontSizeMin: 18
m_fontSizeMax: 72
m_enableAutoSizing: 1
m_fontSizeMin: 0
m_fontSizeMax: 10
m_fontStyle: 0
m_HorizontalAlignment: 2
m_VerticalAlignment: 256
Expand Down Expand Up @@ -797,6 +804,7 @@ MonoBehaviour:
m_hasFontAssetChanged: 0
m_renderer: {fileID: 9163104182923573848}
m_maskType: 0
_SortingLayer: 0
_SortingLayerID: 0
_SortingOrder: 0
--- !u!1 &6913065444530297940
Expand Down Expand Up @@ -855,7 +863,7 @@ MeshRenderer:
m_RenderingLayerMask: 1
m_RendererPriority: 0
m_Materials:
- {fileID: 2180264, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2}
- {fileID: 8963545961531463164, guid: db8e5d852fafb3f4ab85b612e8d470ce, type: 2}
m_StaticBatchInfo:
firstSubMesh: 0
subMeshCount: 0
Expand Down Expand Up @@ -905,8 +913,9 @@ MonoBehaviour:
m_Calls: []
m_text: 1
m_isRightToLeft: 0
m_fontAsset: {fileID: 11400000, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2}
m_sharedMaterial: {fileID: 2180264, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2}
m_fontAsset: {fileID: 11400000, guid: db8e5d852fafb3f4ab85b612e8d470ce, type: 2}
m_sharedMaterial: {fileID: 8963545961531463164, guid: db8e5d852fafb3f4ab85b612e8d470ce,
type: 2}
m_fontSharedMaterials: []
m_fontMaterial: {fileID: 0}
m_fontMaterials: []
Expand All @@ -930,12 +939,12 @@ MonoBehaviour:
m_faceColor:
serializedVersion: 2
rgba: 4294967295
m_fontSize: 10
m_fontSize: 8.3
m_fontSizeBase: 10
m_fontWeight: 400
m_enableAutoSizing: 0
m_fontSizeMin: 18
m_fontSizeMax: 72
m_enableAutoSizing: 1
m_fontSizeMin: 0
m_fontSizeMax: 10
m_fontStyle: 0
m_HorizontalAlignment: 2
m_VerticalAlignment: 256
Expand Down Expand Up @@ -972,6 +981,7 @@ MonoBehaviour:
m_hasFontAssetChanged: 0
m_renderer: {fileID: 1365050203703094491}
m_maskType: 0
_SortingLayer: 0
_SortingLayerID: 0
_SortingOrder: 0
--- !u!1 &8165305649284234394
Expand Down Expand Up @@ -1030,7 +1040,7 @@ MeshRenderer:
m_RenderingLayerMask: 1
m_RendererPriority: 0
m_Materials:
- {fileID: 2180264, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2}
- {fileID: 8963545961531463164, guid: db8e5d852fafb3f4ab85b612e8d470ce, type: 2}
m_StaticBatchInfo:
firstSubMesh: 0
subMeshCount: 0
Expand Down Expand Up @@ -1080,8 +1090,9 @@ MonoBehaviour:
m_Calls: []
m_text: 1
m_isRightToLeft: 0
m_fontAsset: {fileID: 11400000, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2}
m_sharedMaterial: {fileID: 2180264, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2}
m_fontAsset: {fileID: 11400000, guid: db8e5d852fafb3f4ab85b612e8d470ce, type: 2}
m_sharedMaterial: {fileID: 8963545961531463164, guid: db8e5d852fafb3f4ab85b612e8d470ce,
type: 2}
m_fontSharedMaterials: []
m_fontMaterial: {fileID: 0}
m_fontMaterials: []
Expand All @@ -1105,12 +1116,12 @@ MonoBehaviour:
m_faceColor:
serializedVersion: 2
rgba: 4294967295
m_fontSize: 10
m_fontSize: 8.3
m_fontSizeBase: 10
m_fontWeight: 400
m_enableAutoSizing: 0
m_fontSizeMin: 18
m_fontSizeMax: 72
m_enableAutoSizing: 1
m_fontSizeMin: 0
m_fontSizeMax: 10
m_fontStyle: 0
m_HorizontalAlignment: 2
m_VerticalAlignment: 256
Expand Down Expand Up @@ -1147,5 +1158,6 @@ MonoBehaviour:
m_hasFontAssetChanged: 0
m_renderer: {fileID: 6416505811883954909}
m_maskType: 0
_SortingLayer: 0
_SortingLayerID: 0
_SortingOrder: 0
3 changes: 2 additions & 1 deletion Assets/Scripts/ARStage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,12 @@ public class ARStage : MonoBehaviour

void Start()
{
//To allow screen rotation on any orientation
//Forced screen rotation to prevent landscape modes
Screen.autorotateToPortrait = true;
Screen.autorotateToPortraitUpsideDown = true;
Screen.autorotateToLandscapeLeft = true;
Screen.autorotateToLandscapeRight = true;
Screen.orientation = ScreenOrientation.AutoRotation;

string argorithmID = PlayerPrefs.GetString("argorithmID");
ARgorithmHeading.GetComponent<TextMeshProUGUI>().SetText(argorithmID);
Expand Down
7 changes: 7 additions & 0 deletions Assets/Scripts/ArgorithmCloudMenu.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,13 @@ public class ArgorithmCloudMenu : MonoBehaviour
// this function is called only when it is enabled or set to active
void OnEnable()
{
//Forced screen rotation to prevent landscape modes
Screen.autorotateToPortrait = true;
Screen.autorotateToPortraitUpsideDown = true;
Screen.autorotateToLandscapeLeft = false;
Screen.autorotateToLandscapeRight = false;
Screen.orientation = ScreenOrientation.Portrait;

list();
}

Expand Down
7 changes: 7 additions & 0 deletions Assets/Scripts/Login.cs
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,13 @@ void callback(LoginResponse c)
// Start is called before the first frame update
void Start()
{
//Forced screen rotation to prevent landscape modes
Screen.autorotateToPortrait = true;
Screen.autorotateToPortraitUpsideDown = true;
Screen.autorotateToLandscapeLeft = false;
Screen.autorotateToLandscapeRight = false;
Screen.orientation = ScreenOrientation.Portrait;

CreateAccountButton.interactable = false;
LoginButton.interactable = false;

Expand Down
2 changes: 2 additions & 0 deletions Assets/Scripts/MainMenu.cs
Original file line number Diff line number Diff line change
Expand Up @@ -101,10 +101,12 @@ void callback(ConnectionResponse c)
void Start()
{
//To maintain screen rotation on portrait mode only
//Forced screen rotation to prevent landscape modes
Screen.autorotateToPortrait = true;
Screen.autorotateToPortraitUpsideDown = true;
Screen.autorotateToLandscapeLeft = false;
Screen.autorotateToLandscapeRight = false;
Screen.orientation = ScreenOrientation.Portrait;

if (PlayerPrefs.HasKey("CloudMenuEnabled"))
{
Expand Down
10 changes: 7 additions & 3 deletions Assets/Scripts/ParametersMenu.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,13 @@ public class ParametersMenu : MonoBehaviour
private Dictionary<string, JToken> customParameters;
void OnEnable()
{
//Forced screen rotation to prevent landscape modes
Screen.autorotateToPortrait = true;
Screen.autorotateToPortraitUpsideDown = true;
Screen.autorotateToLandscapeLeft = false;
Screen.autorotateToLandscapeRight = false;
Screen.orientation = ScreenOrientation.Portrait;

customParameters = new Dictionary<string, JToken>();

foreach (Transform child in ParameterGameObject.transform)
Expand Down Expand Up @@ -67,9 +74,6 @@ private void FixedUpdate()
SubmitParametersButton.interactable = true;
}
}



}
private void SettingUpParametersInfo()
{
Expand Down

0 comments on commit 5aab31f

Please sign in to comment.