Permalink
Browse files

Added asset bundle test scene.

  • Loading branch information...
1 parent dcd9177 commit b71c876ce2a983efdb95bf50e5cac76f6c72bb48 @keijiro committed Apr 24, 2012
View
BIN AssetBundles/textures.unity3d
Binary file not shown.
View
2 Assets/TestSuite/8.AssetBundleTest.meta
@@ -0,0 +1,2 @@
+fileFormatVersion: 2
+guid: 1fe9dd77141794ab88933c04c8a60c41
View
9 Assets/TestSuite/8.AssetBundleTest/AssetBundleTest.js
@@ -0,0 +1,9 @@
+#pragma strict
+
+var url = "Asset bundle URL";
+
+function Start() {
+ var www = new WWW(url);
+ yield www;
+ Debug.Log(www.assetBundle.mainAsset);
+}
View
7 Assets/TestSuite/8.AssetBundleTest/AssetBundleTest.js.meta
@@ -0,0 +1,7 @@
+fileFormatVersion: 2
+guid: 1c3c2ad105aea4f04aace816c892c9a3
+MonoImporter:
+ serializedVersion: 2
+ defaultReferences: []
+ executionOrder: 0
+ icon: {instanceID: 0}
View
474 Assets/TestSuite/8.AssetBundleTest/AssetBundleTest.unity
@@ -0,0 +1,474 @@
+%YAML 1.1
+%TAG !u! tag:unity3d.com,2011:
+--- !u!29 &1
+Scene:
+ m_ObjectHideFlags: 0
+ m_PVSData:
+ m_QueryMode: 1
+ m_PVSObjectsArray: []
+ m_PVSPortalsArray: []
+ m_OcclusionBakeSettings:
+ viewCellSize: 1
+ bakeMode: 2
+ memoryUsage: 10485760
+--- !u!104 &2
+RenderSettings:
+ m_Fog: 0
+ m_FogColor: {r: .5, g: .5, b: .5, a: 1}
+ m_FogMode: 3
+ m_FogDensity: .00999999978
+ m_LinearFogStart: 0
+ m_LinearFogEnd: 300
+ m_AmbientLight: {r: .200000003, g: .200000003, b: .200000003, a: 1}
+ m_SkyboxMaterial: {fileID: 0}
+ m_HaloStrength: .5
+ m_FlareStrength: 1
+ m_HaloTexture: {fileID: 0}
+ m_SpotCookie: {fileID: 0}
+ m_ObjectHideFlags: 0
+--- !u!127 &3
+GameManager:
+ m_ObjectHideFlags: 0
+--- !u!157 &4
+LightmapSettings:
+ m_ObjectHideFlags: 0
+ m_LightProbes: {fileID: 0}
+ m_Lightmaps: []
+ m_LightmapsMode: 1
+ m_BakedColorSpace: 0
+ m_UseDualLightmapsInForward: 0
+ m_LightmapEditorSettings:
+ m_Resolution: 50
+ m_LastUsedResolution: 0
+ m_TextureWidth: 1024
+ m_TextureHeight: 1024
+ m_BounceBoost: 1
+ m_BounceIntensity: 1
+ m_SkyLightColor: {r: .860000014, g: .930000007, b: 1, a: 1}
+ m_SkyLightIntensity: 0
+ m_Quality: 0
+ m_Bounces: 1
+ m_FinalGatherRays: 1000
+ m_FinalGatherContrastThreshold: .0500000007
+ m_FinalGatherGradientThreshold: 0
+ m_FinalGatherInterpolationPoints: 15
+ m_AOAmount: 0
+ m_AOMaxDistance: .100000001
+ m_AOContrast: 1
+ m_LODSurfaceMappingDistance: 1
+ m_Padding: 0
+ m_TextureCompression: 0
+ m_LockAtlas: 0
+--- !u!196 &5
+NavMeshSettings:
+ m_ObjectHideFlags: 0
+ m_BuildSettings:
+ agentRadius: .5
+ agentHeight: 2
+ agentSlope: 45
+ agentClimb: .400000006
+ ledgeDropHeight: 0
+ maxJumpAcrossDistance: 0
+ accuratePlacement: 0
+ minRegionArea: 2
+ widthInaccuracy: 16.666666
+ heightInaccuracy: 10
+ m_NavMesh: {fileID: 0}
+--- !u!1 &483145311
+GameObject:
+ m_ObjectHideFlags: 0
+ m_PrefabParentObject: {fileID: 0}
+ m_PrefabInternal: {fileID: 0}
+ serializedVersion: 3
+ m_Component:
+ - 4: {fileID: 483145312}
+ - 114: {fileID: 483145313}
+ m_Layer: 0
+ m_Name: Tester
+ m_TagString: Untagged
+ m_Icon: {fileID: 0}
+ m_NavMeshLayer: 0
+ m_StaticEditorFlags: 0
+ m_IsActive: 1
+--- !u!4 &483145312
+Transform:
+ m_ObjectHideFlags: 0
+ m_PrefabParentObject: {fileID: 0}
+ m_PrefabInternal: {fileID: 0}
+ m_GameObject: {fileID: 483145311}
+ m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
+ m_LocalPosition: {x: 0, y: 0, z: 0}
+ m_LocalScale: {x: 1, y: 1, z: 1}
+ m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
+ m_Children: []
+ m_Father: {fileID: 0}
+--- !u!114 &483145313
+MonoBehaviour:
+ m_ObjectHideFlags: 0
+ m_PrefabParentObject: {fileID: 0}
+ m_PrefabInternal: {fileID: 0}
+ m_GameObject: {fileID: 483145311}
+ m_Enabled: 1
+ m_EditorHideFlags: 0
+ m_Script: {fileID: 11500000, guid: 1c3c2ad105aea4f04aace816c892c9a3, type: 1}
+ m_Name:
+ url: https://github.com/downloads/keijiro/unity-memory-example/textures.unity3d
+--- !u!1 &648693887
+GameObject:
+ m_ObjectHideFlags: 0
+ m_PrefabParentObject: {fileID: 100000, guid: 2c4ced89f49784d7eb538b0397a4721a, type: 2}
+ m_PrefabInternal: {fileID: 0}
+ serializedVersion: 3
+ m_Component:
+ - 4: {fileID: 648693888}
+ - 33: {fileID: 648693890}
+ - 23: {fileID: 648693889}
+ m_Layer: 0
+ m_Name: Cube 2
+ m_TagString: Untagged
+ m_Icon: {fileID: 0}
+ m_NavMeshLayer: 0
+ m_StaticEditorFlags: 0
+ m_IsActive: 1
+--- !u!4 &648693888
+Transform:
+ m_ObjectHideFlags: 0
+ m_PrefabParentObject: {fileID: 400000, guid: 2c4ced89f49784d7eb538b0397a4721a, type: 2}
+ m_PrefabInternal: {fileID: 0}
+ m_GameObject: {fileID: 648693887}
+ m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
+ m_LocalPosition: {x: -.699999988, y: 0, z: 0}
+ m_LocalScale: {x: 1, y: 1, z: 1}
+ m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
+ m_Children: []
+ m_Father: {fileID: 0}
+--- !u!23 &648693889
+Renderer:
+ m_ObjectHideFlags: 0
+ m_PrefabParentObject: {fileID: 2300000, guid: 2c4ced89f49784d7eb538b0397a4721a,
+ type: 2}
+ m_PrefabInternal: {fileID: 0}
+ m_GameObject: {fileID: 648693887}
+ m_Enabled: 1
+ m_CastShadows: 1
+ m_ReceiveShadows: 1
+ m_LightmapIndex: 255
+ m_LightmapTilingOffset: {x: 1, y: 1, z: 0, w: 0}
+ m_Materials:
+ - {fileID: 10302, guid: 0000000000000000e000000000000000, type: 0}
+ m_SubsetIndices:
+ m_StaticBatchRoot: {fileID: 0}
+ m_UseLightProbes: 0
+ m_LightProbeAnchor: {fileID: 0}
+ m_ScaleInLightmap: 1
+--- !u!33 &648693890
+MeshFilter:
+ m_ObjectHideFlags: 0
+ m_PrefabParentObject: {fileID: 3300000, guid: 2c4ced89f49784d7eb538b0397a4721a,
+ type: 2}
+ m_PrefabInternal: {fileID: 0}
+ m_GameObject: {fileID: 648693887}
+ m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0}
+--- !u!1 &674428028
+GameObject:
+ m_ObjectHideFlags: 0
+ m_PrefabParentObject: {fileID: 100000, guid: a3c339698926944b093bf2b5d450f27f, type: 2}
+ m_PrefabInternal: {fileID: 0}
+ serializedVersion: 3
+ m_Component:
+ - 4: {fileID: 674428029}
+ - 33: {fileID: 674428031}
+ - 23: {fileID: 674428030}
+ m_Layer: 0
+ m_Name: Cube 3
+ m_TagString: Untagged
+ m_Icon: {fileID: 0}
+ m_NavMeshLayer: 0
+ m_StaticEditorFlags: 0
+ m_IsActive: 1
+--- !u!4 &674428029
+Transform:
+ m_ObjectHideFlags: 0
+ m_PrefabParentObject: {fileID: 400000, guid: a3c339698926944b093bf2b5d450f27f, type: 2}
+ m_PrefabInternal: {fileID: 0}
+ m_GameObject: {fileID: 674428028}
+ m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
+ m_LocalPosition: {x: .699999988, y: 0, z: 0}
+ m_LocalScale: {x: 1, y: 1, z: 1}
+ m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
+ m_Children: []
+ m_Father: {fileID: 0}
+--- !u!23 &674428030
+Renderer:
+ m_ObjectHideFlags: 0
+ m_PrefabParentObject: {fileID: 2300000, guid: a3c339698926944b093bf2b5d450f27f,
+ type: 2}
+ m_PrefabInternal: {fileID: 0}
+ m_GameObject: {fileID: 674428028}
+ m_Enabled: 1
+ m_CastShadows: 1
+ m_ReceiveShadows: 1
+ m_LightmapIndex: 255
+ m_LightmapTilingOffset: {x: 1, y: 1, z: 0, w: 0}
+ m_Materials:
+ - {fileID: 10302, guid: 0000000000000000e000000000000000, type: 0}
+ m_SubsetIndices:
+ m_StaticBatchRoot: {fileID: 0}
+ m_UseLightProbes: 0
+ m_LightProbeAnchor: {fileID: 0}
+ m_ScaleInLightmap: 1
+--- !u!33 &674428031
+MeshFilter:
+ m_ObjectHideFlags: 0
+ m_PrefabParentObject: {fileID: 3300000, guid: a3c339698926944b093bf2b5d450f27f,
+ type: 2}
+ m_PrefabInternal: {fileID: 0}
+ m_GameObject: {fileID: 674428028}
+ m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0}
+--- !u!1 &1266014867
+GameObject:
+ m_ObjectHideFlags: 0
+ m_PrefabParentObject: {fileID: 100000, guid: ba6e916277dbe44158094562888d4104, type: 2}
+ m_PrefabInternal: {fileID: 0}
+ serializedVersion: 3
+ m_Component:
+ - 4: {fileID: 1266014868}
+ - 33: {fileID: 1266014870}
+ - 23: {fileID: 1266014869}
+ m_Layer: 0
+ m_Name: Cube 4
+ m_TagString: Untagged
+ m_Icon: {fileID: 0}
+ m_NavMeshLayer: 0
+ m_StaticEditorFlags: 0
+ m_IsActive: 1
+--- !u!4 &1266014868
+Transform:
+ m_ObjectHideFlags: 0
+ m_PrefabParentObject: {fileID: 400000, guid: ba6e916277dbe44158094562888d4104, type: 2}
+ m_PrefabInternal: {fileID: 0}
+ m_GameObject: {fileID: 1266014867}
+ m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
+ m_LocalPosition: {x: 2.0999999, y: 0, z: 0}
+ m_LocalScale: {x: 1, y: 1, z: 1}
+ m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
+ m_Children: []
+ m_Father: {fileID: 0}
+--- !u!23 &1266014869
+Renderer:
+ m_ObjectHideFlags: 0
+ m_PrefabParentObject: {fileID: 2300000, guid: ba6e916277dbe44158094562888d4104,
+ type: 2}
+ m_PrefabInternal: {fileID: 0}
+ m_GameObject: {fileID: 1266014867}
+ m_Enabled: 1
+ m_CastShadows: 1
+ m_ReceiveShadows: 1
+ m_LightmapIndex: 255
+ m_LightmapTilingOffset: {x: 1, y: 1, z: 0, w: 0}
+ m_Materials:
+ - {fileID: 10302, guid: 0000000000000000e000000000000000, type: 0}
+ m_SubsetIndices:
+ m_StaticBatchRoot: {fileID: 0}
+ m_UseLightProbes: 0
+ m_LightProbeAnchor: {fileID: 0}
+ m_ScaleInLightmap: 1
+--- !u!33 &1266014870
+MeshFilter:
+ m_ObjectHideFlags: 0
+ m_PrefabParentObject: {fileID: 3300000, guid: ba6e916277dbe44158094562888d4104,
+ type: 2}
+ m_PrefabInternal: {fileID: 0}
+ m_GameObject: {fileID: 1266014867}
+ m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0}
+--- !u!1 &1299583659
+GameObject:
+ m_ObjectHideFlags: 0
+ m_PrefabParentObject: {fileID: 100000, guid: 7c0c69dd4027e488a83ea93352890e94, type: 2}
+ m_PrefabInternal: {fileID: 0}
+ serializedVersion: 3
+ m_Component:
+ - 4: {fileID: 1299583660}
+ - 33: {fileID: 1299583662}
+ - 23: {fileID: 1299583661}
+ m_Layer: 0
+ m_Name: Cube 1
+ m_TagString: Untagged
+ m_Icon: {fileID: 0}
+ m_NavMeshLayer: 0
+ m_StaticEditorFlags: 0
+ m_IsActive: 1
+--- !u!4 &1299583660
+Transform:
+ m_ObjectHideFlags: 0
+ m_PrefabParentObject: {fileID: 400000, guid: 7c0c69dd4027e488a83ea93352890e94, type: 2}
+ m_PrefabInternal: {fileID: 0}
+ m_GameObject: {fileID: 1299583659}
+ m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
+ m_LocalPosition: {x: -2.0999999, y: 0, z: 0}
+ m_LocalScale: {x: 1, y: 1, z: 1}
+ m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
+ m_Children: []
+ m_Father: {fileID: 0}
+--- !u!23 &1299583661
+Renderer:
+ m_ObjectHideFlags: 0
+ m_PrefabParentObject: {fileID: 2300000, guid: 7c0c69dd4027e488a83ea93352890e94,
+ type: 2}
+ m_PrefabInternal: {fileID: 0}
+ m_GameObject: {fileID: 1299583659}
+ m_Enabled: 1
+ m_CastShadows: 1
+ m_ReceiveShadows: 1
+ m_LightmapIndex: 255
+ m_LightmapTilingOffset: {x: 1, y: 1, z: 0, w: 0}
+ m_Materials:
+ - {fileID: 10302, guid: 0000000000000000e000000000000000, type: 0}
+ m_SubsetIndices:
+ m_StaticBatchRoot: {fileID: 0}
+ m_UseLightProbes: 0
+ m_LightProbeAnchor: {fileID: 0}
+ m_ScaleInLightmap: 1
+--- !u!33 &1299583662
+MeshFilter:
+ m_ObjectHideFlags: 0
+ m_PrefabParentObject: {fileID: 3300000, guid: 7c0c69dd4027e488a83ea93352890e94,
+ type: 2}
+ m_PrefabInternal: {fileID: 0}
+ m_GameObject: {fileID: 1299583659}
+ m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0}
+--- !u!1 &1355468007
+GameObject:
+ m_ObjectHideFlags: 0
+ m_PrefabParentObject: {fileID: 0}
+ m_PrefabInternal: {fileID: 0}
+ serializedVersion: 3
+ m_Component:
+ - 4: {fileID: 1355468008}
+ - 108: {fileID: 1355468009}
+ m_Layer: 0
+ m_Name: Directional light
+ m_TagString: Untagged
+ m_Icon: {fileID: 0}
+ m_NavMeshLayer: 0
+ m_StaticEditorFlags: 0
+ m_IsActive: 1
+--- !u!4 &1355468008
+Transform:
+ m_ObjectHideFlags: 0
+ m_PrefabParentObject: {fileID: 0}
+ m_PrefabInternal: {fileID: 0}
+ m_GameObject: {fileID: 1355468007}
+ m_LocalRotation: {x: .408217937, y: -.234569728, z: .109381676, w: .875426054}
+ m_LocalPosition: {x: 1.84383333, y: .880859375, z: -.0411953367}
+ m_LocalScale: {x: 1, y: 1, z: 1}
+ m_LocalEulerAnglesHint: {x: 50, y: -30, z: 0}
+ m_Children: []
+ m_Father: {fileID: 0}
+--- !u!108 &1355468009
+Light:
+ m_ObjectHideFlags: 0
+ m_PrefabParentObject: {fileID: 0}
+ m_PrefabInternal: {fileID: 0}
+ m_GameObject: {fileID: 1355468007}
+ m_Enabled: 1
+ serializedVersion: 3
+ m_Type: 1
+ m_Color: {r: 1, g: 1, b: 1, a: 1}
+ m_Intensity: .5
+ m_Range: 10
+ m_SpotAngle: 30
+ m_CookieSize: 10
+ m_Shadows:
+ m_Type: 0
+ m_Resolution: -1
+ m_Strength: 1
+ m_Bias: .0500000007
+ m_Softness: 4
+ m_SoftnessFade: 1
+ m_Cookie: {fileID: 0}
+ m_DrawHalo: 0
+ m_ActuallyLightmapped: 0
+ m_Flare: {fileID: 0}
+ m_RenderMode: 0
+ m_CullingMask:
+ serializedVersion: 2
+ m_Bits: 4294967295
+ m_Lightmapping: 1
+ m_ShadowSamples: 1
+ m_ShadowRadius: 0
+ m_ShadowAngle: 0
+ m_IndirectIntensity: 1
+ m_AreaSize: {x: 1, y: 1}
+--- !u!1 &1360339616
+GameObject:
+ m_ObjectHideFlags: 0
+ m_PrefabParentObject: {fileID: 0}
+ m_PrefabInternal: {fileID: 0}
+ serializedVersion: 3
+ m_Component:
+ - 4: {fileID: 1360339617}
+ - 20: {fileID: 1360339618}
+ - 92: {fileID: 1360339620}
+ - 81: {fileID: 1360339619}
+ m_Layer: 0
+ m_Name: Main Camera
+ m_TagString: MainCamera
+ m_Icon: {fileID: 0}
+ m_NavMeshLayer: 0
+ m_StaticEditorFlags: 0
+ m_IsActive: 1
+--- !u!4 &1360339617
+Transform:
+ m_ObjectHideFlags: 0
+ m_PrefabParentObject: {fileID: 0}
+ m_PrefabInternal: {fileID: 0}
+ m_GameObject: {fileID: 1360339616}
+ m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
+ m_LocalPosition: {x: 0, y: 0, z: -9}
+ m_LocalScale: {x: 1, y: 1, z: 1}
+ m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
+ m_Children: []
+ m_Father: {fileID: 0}
+--- !u!20 &1360339618
+Camera:
+ m_ObjectHideFlags: 0
+ m_PrefabParentObject: {fileID: 0}
+ m_PrefabInternal: {fileID: 0}
+ m_GameObject: {fileID: 1360339616}
+ m_Enabled: 1
+ serializedVersion: 2
+ m_ClearFlags: 1
+ m_BackGroundColor: {r: .104477584, g: .104477584, b: .104477584, a: .0196078438}
+ m_NormalizedViewPortRect:
+ serializedVersion: 2
+ x: 0
+ y: 0
+ width: 1
+ height: 1
+ near clip plane: .300000012
+ far clip plane: 100
+ field of view: 25
+ orthographic: 0
+ orthographic size: 100
+ m_Depth: -1
+ m_CullingMask:
+ serializedVersion: 2
+ m_Bits: 4294967295
+ m_RenderingPath: -1
+ m_TargetTexture: {fileID: 0}
+ m_HDR: 0
+--- !u!81 &1360339619
+AudioListener:
+ m_ObjectHideFlags: 0
+ m_PrefabParentObject: {fileID: 0}
+ m_PrefabInternal: {fileID: 0}
+ m_GameObject: {fileID: 1360339616}
+ m_Enabled: 1
+--- !u!92 &1360339620
+Behaviour:
+ m_ObjectHideFlags: 0
+ m_PrefabParentObject: {fileID: 0}
+ m_PrefabInternal: {fileID: 0}
+ m_GameObject: {fileID: 1360339616}
+ m_Enabled: 1
View
2 Assets/TestSuite/8.AssetBundleTest/AssetBundleTest.unity.meta
@@ -0,0 +1,2 @@
+fileFormatVersion: 2
+guid: ccb0175e7bd18450d93163961b529708
View
2 ProjectSettings/EditorBuildSettings.asset
@@ -32,4 +32,6 @@ EditorBuildSettings:
- enabled: 1
path: Assets/TestSuite/7.AssetUnloadingTest/AssetUnloadingTest2.unity
- enabled: 1
+ path: Assets/TestSuite/8.AssetBundleTest/AssetBundleTest.unity
+ - enabled: 1
path: Assets/Common/Scenes/Termination.unity

0 comments on commit b71c876

Please sign in to comment.