commit
18830a5160
@ -57,16 +57,13 @@ public class SkyboxSwitcher : MonoBehaviour
|
||||
yield return uwr.SendWebRequest();
|
||||
if (uwr.result == UnityWebRequest.Result.ConnectionError)
|
||||
{
|
||||
Debug.Log($"Had trouble loading file {uwr.uri}.");
|
||||
Debug.LogWarning($"Couldn't load skybox texture at {uwr.uri}.");
|
||||
}
|
||||
else
|
||||
{
|
||||
var skyboxMat = new Material(Shader.Find("Skybox/Panoramic"));
|
||||
skyboxMat.SetFloat("_Rotation", 45f);
|
||||
var texture = DownloadHandlerTexture.GetContent(uwr);
|
||||
Debug.Log(uwr.uri);
|
||||
Debug.Log(texture);
|
||||
Debug.Log("////////////");
|
||||
if (texture != null)
|
||||
{
|
||||
skyboxMat.SetTexture("_MainTex", texture);
|
||||
|
@ -137,8 +137,6 @@ PlayerSettings:
|
||||
bundleVersion: 0.1.0
|
||||
preloadedAssets:
|
||||
- {fileID: 11400000, guid: 74eeb7429f216ca45a7093c586513e98, type: 2}
|
||||
- {fileID: -6265376527240436808, guid: 5e2dc0db42cc5b3459a781fecb0b76f9, type: 2}
|
||||
- {fileID: -6348321304186183749, guid: 6460523340b221f4ea5611d2c011a26c, type: 2}
|
||||
metroInputSource: 0
|
||||
wsaTransparentSwapchain: 0
|
||||
m_HolographicPauseOnTrackingLoss: 1
|
||||
|
@ -19,7 +19,7 @@ MonoBehaviour:
|
||||
width: 1920
|
||||
height: 1007
|
||||
m_ShowMode: 4
|
||||
m_Title: Scene
|
||||
m_Title: Console
|
||||
m_RootView: {fileID: 6}
|
||||
m_MinSize: {x: 875, y: 300}
|
||||
m_MaxSize: {x: 10000, y: 10000}
|
||||
@ -48,7 +48,7 @@ MonoBehaviour:
|
||||
m_MinSize: {x: 300, y: 200}
|
||||
m_MaxSize: {x: 24288, y: 16192}
|
||||
vertical: 0
|
||||
controlID: 104
|
||||
controlID: 27
|
||||
--- !u!114 &3
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 52
|
||||
@ -111,7 +111,7 @@ MonoBehaviour:
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 1
|
||||
m_Script: {fileID: 12006, guid: 0000000000000000e000000000000000, type: 0}
|
||||
m_Name: ProjectBrowser
|
||||
m_Name: ConsoleWindow
|
||||
m_EditorClassIdentifier:
|
||||
m_Children: []
|
||||
m_Position:
|
||||
@ -120,14 +120,14 @@ MonoBehaviour:
|
||||
y: 647
|
||||
width: 1470
|
||||
height: 310
|
||||
m_MinSize: {x: 231, y: 271}
|
||||
m_MaxSize: {x: 10001, y: 10021}
|
||||
m_ActualView: {fileID: 13}
|
||||
m_MinSize: {x: 100, y: 100}
|
||||
m_MaxSize: {x: 4000, y: 4000}
|
||||
m_ActualView: {fileID: 18}
|
||||
m_Panes:
|
||||
- {fileID: 13}
|
||||
- {fileID: 18}
|
||||
m_Selected: 0
|
||||
m_LastSelected: 1
|
||||
m_Selected: 1
|
||||
m_LastSelected: 0
|
||||
--- !u!114 &6
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 52
|
||||
@ -223,7 +223,7 @@ MonoBehaviour:
|
||||
m_MinSize: {x: 200, y: 200}
|
||||
m_MaxSize: {x: 16192, y: 16192}
|
||||
vertical: 1
|
||||
controlID: 110
|
||||
controlID: 17
|
||||
--- !u!114 &10
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 52
|
||||
@ -248,7 +248,7 @@ MonoBehaviour:
|
||||
m_MinSize: {x: 200, y: 100}
|
||||
m_MaxSize: {x: 16192, y: 8096}
|
||||
vertical: 0
|
||||
controlID: 111
|
||||
controlID: 18
|
||||
--- !u!114 &11
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 52
|
||||
@ -268,8 +268,8 @@ MonoBehaviour:
|
||||
y: 0
|
||||
width: 1118
|
||||
height: 647
|
||||
m_MinSize: {x: 200, y: 200}
|
||||
m_MaxSize: {x: 4000, y: 4000}
|
||||
m_MinSize: {x: 202, y: 221}
|
||||
m_MaxSize: {x: 4002, y: 4021}
|
||||
m_ActualView: {fileID: 16}
|
||||
m_Panes:
|
||||
- {fileID: 16}
|
||||
@ -348,22 +348,22 @@ MonoBehaviour:
|
||||
m_SkipHidden: 0
|
||||
m_SearchArea: 1
|
||||
m_Folders:
|
||||
- Assets/Script
|
||||
- Assets/StreamingAssets/SkyboxTextures
|
||||
m_Globs: []
|
||||
m_OriginalText:
|
||||
m_ViewMode: 1
|
||||
m_StartGridSize: 64
|
||||
m_LastFolders:
|
||||
- Assets/Script
|
||||
- Assets/StreamingAssets/SkyboxTextures
|
||||
m_LastFoldersGridSize: -1
|
||||
m_LastProjectPath: C:\Users\Alex\Documents\GitHub\WACVR
|
||||
m_LockTracker:
|
||||
m_IsLocked: 0
|
||||
m_FolderTreeState:
|
||||
scrollPos: {x: 0, y: 95}
|
||||
m_SelectedIDs: 88800000
|
||||
m_LastClickedID: 32904
|
||||
m_ExpandedIDs: 00000000748000007c8000008c80000096800000a0490100169f020000ca9a3bffffff7f
|
||||
m_SelectedIDs: 36810000
|
||||
m_LastClickedID: 33078
|
||||
m_ExpandedIDs: 0000000094800000a6800000b880000000ca9a3b
|
||||
m_RenameOverlay:
|
||||
m_UserAcceptedRename: 0
|
||||
m_Name:
|
||||
@ -391,7 +391,7 @@ MonoBehaviour:
|
||||
scrollPos: {x: 0, y: 115}
|
||||
m_SelectedIDs: 76710000
|
||||
m_LastClickedID: 0
|
||||
m_ExpandedIDs: 0000000074800000
|
||||
m_ExpandedIDs: 0000000094800000
|
||||
m_RenameOverlay:
|
||||
m_UserAcceptedRename: 0
|
||||
m_Name:
|
||||
@ -523,7 +523,7 @@ MonoBehaviour:
|
||||
scrollPos: {x: 0, y: 0}
|
||||
m_SelectedIDs:
|
||||
m_LastClickedID: 0
|
||||
m_ExpandedIDs: 6c39fcff6e3afcff223dfcff4497fcff5098fcff9a98fcffd6d3fcffded4fcff96d7fcff30fbffffe46f0000f66f00009e71000048730000927300006074000088160300d84a0300f64c0300
|
||||
m_ExpandedIDs: 7ad4fdff7cd5fdff3cd8fdff8ce2fdff8ee3fdffe8e3fdfffeebfdff00edfdffc2effdff8ec2ffff88d5ffff8ad6ffff3ed9ffff30fbffff92730000787400005ed10000b2d10000
|
||||
m_RenameOverlay:
|
||||
m_UserAcceptedRename: 0
|
||||
m_Name:
|
||||
@ -773,9 +773,9 @@ MonoBehaviour:
|
||||
m_PlayAudio: 0
|
||||
m_AudioPlay: 0
|
||||
m_Position:
|
||||
m_Target: {x: 0.168568, y: 1.4478825, z: -0.57401925}
|
||||
m_Target: {x: -0.3581717, y: 1.5877215, z: -1.1109143}
|
||||
speed: 2
|
||||
m_Value: {x: 0.168568, y: 1.4478825, z: -0.57401925}
|
||||
m_Value: {x: -0.3581717, y: 1.5877215, z: -1.1109143}
|
||||
m_RenderMode: 0
|
||||
m_CameraMode:
|
||||
drawMode: 0
|
||||
@ -822,13 +822,13 @@ MonoBehaviour:
|
||||
m_GridAxis: 1
|
||||
m_gridOpacity: 0.547
|
||||
m_Rotation:
|
||||
m_Target: {x: 0.23198411, y: 0.032387137, z: -0.0061505544, w: 0.97167784}
|
||||
m_Target: {x: -0.030445118, y: -0.3625145, z: 0.009411918, w: -0.9308274}
|
||||
speed: 2
|
||||
m_Value: {x: 0.23208357, y: 0.033860516, z: -0.006501576, w: 0.9720846}
|
||||
m_Value: {x: -0.030462306, y: -0.36271918, z: 0.009417232, w: -0.9313529}
|
||||
m_Size:
|
||||
m_Target: 0.10651512
|
||||
m_Target: 0.14495236
|
||||
speed: 2
|
||||
m_Value: 0.10651512
|
||||
m_Value: 0.14495236
|
||||
m_Ortho:
|
||||
m_Target: 0
|
||||
speed: 2
|
||||
@ -915,7 +915,7 @@ MonoBehaviour:
|
||||
m_HSlider: 0
|
||||
m_VSlider: 0
|
||||
m_IgnoreScrollWheelUntilClicked: 0
|
||||
m_EnableMouseInput: 0
|
||||
m_EnableMouseInput: 1
|
||||
m_EnableSliderZoomHorizontal: 0
|
||||
m_EnableSliderZoomVertical: 0
|
||||
m_UniformScale: 1
|
||||
|
Loading…
Reference in New Issue
Block a user