Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
HACK: Fixed/worked around problem where temp files would be locked an…
…d inaccessible when changing TextScenes. This problem surfaces mostly on windows. See FIXME in TextSceneMonitor.cs
- Loading branch information
Trond Abusdal
committed
Mar 24, 2010
1 parent
e87dbf4
commit b4e9aa9
Showing
6 changed files
with
191 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,126 @@ | ||
gameobject Cube | ||
tag Untagged layer 0 | ||
0.00000 -2.48280 0.00000 | ||
0.00000 0.00000 0.00000 1.00000 | ||
1.00000 1.00000 1.00000 | ||
children 0 | ||
components 3 | ||
UnityEngine.MeshFilter 1 | ||
property sharedMesh builtinmesh UnityEngine.Mesh = Cube | ||
UnityEngine.BoxCollider 4 | ||
property center primitive UnityEngine.Vector3 = (0.0, 0.0, 0.0) | ||
property size primitive UnityEngine.Vector3 = (1.0, 1.0, 1.0) | ||
property extents primitive UnityEngine.Vector3 = (0.5, 0.5, 0.5) | ||
property isTrigger primitive System.Boolean = False | ||
UnityEngine.MeshRenderer 5 | ||
property castShadows primitive System.Boolean = True | ||
property receiveShadows primitive System.Boolean = True | ||
property sharedMaterials array UnityEngine.Material[] = 1 | ||
builtinmaterial UnityEngine.Material = Default-Diffuse | ||
property lightmapIndex primitive System.Int32 = -1 | ||
property lightmapTilingOffset primitive UnityEngine.Vector4 = (1.0, 1.0, 0.0, 0.0) | ||
|
||
gameobject Cube | ||
tag Untagged layer 0 | ||
3.00000 -2.48280 2.00000 | ||
0.00000 0.00000 0.00000 1.00000 | ||
1.00000 1.00000 1.00000 | ||
children 1 | ||
gameobject Cube | ||
tag Untagged layer 0 | ||
-10.00000 6.00000 0.00000 | ||
0.00000 0.00000 0.00000 1.00000 | ||
1.00000 1.00000 1.00000 | ||
children 0 | ||
components 3 | ||
UnityEngine.MeshFilter 1 | ||
property sharedMesh builtinmesh UnityEngine.Mesh = Cube | ||
UnityEngine.BoxCollider 4 | ||
property center primitive UnityEngine.Vector3 = (0.0, 0.0, 0.0) | ||
property size primitive UnityEngine.Vector3 = (1.0, 1.0, 1.0) | ||
property extents primitive UnityEngine.Vector3 = (0.5, 0.5, 0.5) | ||
property isTrigger primitive System.Boolean = False | ||
UnityEngine.MeshRenderer 5 | ||
property castShadows primitive System.Boolean = True | ||
property receiveShadows primitive System.Boolean = True | ||
property sharedMaterials array UnityEngine.Material[] = 1 | ||
asset UnityEngine.Material = Assets/Materials/CustomMaterial.mat, CustomMaterial, e9b851d350fc14be09ce3ba99babfe07 | ||
property lightmapIndex primitive System.Int32 = -1 | ||
property lightmapTilingOffset primitive UnityEngine.Vector4 = (1.0, 1.0, 0.0, 0.0) | ||
components 3 | ||
UnityEngine.MeshFilter 1 | ||
property sharedMesh builtinmesh UnityEngine.Mesh = Cube | ||
UnityEngine.BoxCollider 4 | ||
property center primitive UnityEngine.Vector3 = (0.0, 0.0, 0.0) | ||
property size primitive UnityEngine.Vector3 = (1.0, 1.0, 1.0) | ||
property extents primitive UnityEngine.Vector3 = (0.5, 0.5, 0.5) | ||
property isTrigger primitive System.Boolean = False | ||
UnityEngine.MeshRenderer 5 | ||
property castShadows primitive System.Boolean = True | ||
property receiveShadows primitive System.Boolean = True | ||
property sharedMaterials array UnityEngine.Material[] = 1 | ||
builtinmaterial UnityEngine.Material = Default-Diffuse | ||
property lightmapIndex primitive System.Int32 = -1 | ||
property lightmapTilingOffset primitive UnityEngine.Vector4 = (1.0, 1.0, 0.0, 0.0) | ||
|
||
gameobject Directional light | ||
tag Untagged layer 0 | ||
740.81120 66.71914 1054.85100 | ||
0.37889 0.00000 0.00000 0.92544 | ||
1.00000 1.00000 1.00000 | ||
children 0 | ||
components 1 | ||
UnityEngine.Light 12 | ||
property type primitive UnityEngine.LightType = Directional | ||
property color primitive UnityEngine.Color = (1.000, 1.000, 1.000, 1.000) | ||
property intensity primitive System.Single = 0.5 | ||
property shadows primitive UnityEngine.LightShadows = None | ||
property shadowStrength primitive System.Single = 0.8 | ||
property shadowConstantBias primitive System.Single = 0.07 | ||
property shadowObjectSizeBias primitive System.Single = 0.01 | ||
property attenuate primitive System.Boolean = True | ||
property range primitive System.Single = 10 | ||
property spotAngle primitive System.Single = 30 | ||
property renderMode primitive UnityEngine.LightRenderMode = Auto | ||
property cullingMask primitive System.Int32 = -1 | ||
|
||
gameobject Links | ||
tag Untagged layer 0 | ||
8.54124 9.88922 -6.45947 | ||
0.00000 0.00000 0.00000 1.00000 | ||
1.00000 1.00000 1.00000 | ||
children 0 | ||
components 1 | ||
TextSceneLinkTest 4 | ||
field materialList array UnityEngine.Material[] = 0 | ||
field prefabLink asset UnityEngine.GameObject = Assets/Prefabs/Capsules.prefab, Capsules, f0529f741bc2540eea3ec100e446c639 | ||
field colliderLink scenelink UnityEngine.BoxCollider = /Cube/Cube | ||
field nextScene primitive System.String = scenedemo | ||
|
||
gameobject Main Camera | ||
tag MainCamera layer 0 | ||
0.00000 1.00000 -10.00000 | ||
0.00000 0.00000 0.00000 1.00000 | ||
1.00000 1.00000 1.00000 | ||
children 0 | ||
components 3 | ||
UnityEngine.Camera 15 | ||
property fov primitive System.Single = 60 | ||
property near primitive System.Single = 0.3 | ||
property far primitive System.Single = 1000 | ||
property fieldOfView primitive System.Single = 60 | ||
property nearClipPlane primitive System.Single = 0.3 | ||
property farClipPlane primitive System.Single = 1000 | ||
property orthographicSize primitive System.Single = 100 | ||
property orthographic primitive System.Boolean = False | ||
property isOrthoGraphic primitive System.Boolean = False | ||
property depth primitive System.Single = -1 | ||
property cullingMask primitive System.Int32 = -1 | ||
property backgroundColor primitive UnityEngine.Color = (0.192, 0.302, 0.475, 0.020) | ||
property rect primitive UnityEngine.Rect = (0.00, 0.00, 1.00, 1.00) | ||
property clearFlags primitive UnityEngine.CameraClearFlags = Skybox | ||
property depthTextureMode primitive UnityEngine.DepthTextureMode = None | ||
UnityEngine.GUILayer 0 | ||
UnityEngine.AudioListener 1 | ||
property velocityUpdateMode primitive UnityEngine.AudioVelocityUpdateMode = Dynamic | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,28 @@ | ||
/// | ||
/// Copyright (c) 2010 TerraVision AS | ||
/// See LICENSE file for licensing details | ||
/// | ||
|
||
using UnityEngine; | ||
|
||
class TextSceneLinkTest : MonoBehaviour | ||
{ | ||
public Material[] materialList; | ||
public GameObject goLink; | ||
public Transform transformLink; | ||
public GameObject prefabLink; | ||
public BoxCollider colliderLink; | ||
} | ||
|
||
/// | ||
/// Copyright (c) 2010 TerraVision AS | ||
/// See LICENSE file for licensing details | ||
/// | ||
|
||
using UnityEngine; | ||
|
||
class TextSceneLinkTest : MonoBehaviour | ||
{ | ||
public Material[] materialList; | ||
public GameObject goLink; | ||
public Transform transformLink; | ||
public GameObject prefabLink; | ||
public BoxCollider colliderLink; | ||
|
||
public string nextScene; | ||
|
||
protected void OnGUI() | ||
{ | ||
if (GUI.Button(new Rect(20.0f, 20.0f, 100.0f, 20.0f), "Change scene")) | ||
{ | ||
if (nextScene != null && nextScene.Length > 0) | ||
Application.LoadLevel(nextScene); | ||
else | ||
Application.LoadLevel(Application.loadedLevelName); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
scene Assets/Scenes/scenedemo.txt | ||
scene Assets/Scenes/otherscenedemo.txt |