Save and Load Prefabs Instantiated at Runtime.unity 9.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350
  1. %YAML 1.1
  2. %TAG !u! tag:unity3d.com,2011:
  3. --- !u!29 &1
  4. SceneSettings:
  5. m_ObjectHideFlags: 0
  6. m_PVSData:
  7. m_PVSObjectsArray: []
  8. m_PVSPortalsArray: []
  9. m_OcclusionBakeSettings:
  10. smallestOccluder: 5
  11. smallestHole: .25
  12. backfaceThreshold: 100
  13. --- !u!104 &2
  14. RenderSettings:
  15. m_Fog: 0
  16. m_FogColor: {r: .5, g: .5, b: .5, a: 1}
  17. m_FogMode: 3
  18. m_FogDensity: .00999999978
  19. m_LinearFogStart: 0
  20. m_LinearFogEnd: 300
  21. m_AmbientLight: {r: .200000003, g: .200000003, b: .200000003, a: 1}
  22. m_SkyboxMaterial: {fileID: 0}
  23. m_HaloStrength: .5
  24. m_FlareStrength: 1
  25. m_FlareFadeSpeed: 3
  26. m_HaloTexture: {fileID: 0}
  27. m_SpotCookie: {fileID: 0}
  28. m_ObjectHideFlags: 0
  29. --- !u!127 &3
  30. LevelGameManager:
  31. m_ObjectHideFlags: 0
  32. --- !u!157 &4
  33. LightmapSettings:
  34. m_ObjectHideFlags: 0
  35. m_LightProbes: {fileID: 0}
  36. m_Lightmaps: []
  37. m_LightmapsMode: 1
  38. m_BakedColorSpace: 0
  39. m_UseDualLightmapsInForward: 0
  40. m_LightmapEditorSettings:
  41. m_Resolution: 50
  42. m_LastUsedResolution: 0
  43. m_TextureWidth: 1024
  44. m_TextureHeight: 1024
  45. m_BounceBoost: 1
  46. m_BounceIntensity: 1
  47. m_SkyLightColor: {r: .860000014, g: .930000007, b: 1, a: 1}
  48. m_SkyLightIntensity: 0
  49. m_Quality: 0
  50. m_Bounces: 1
  51. m_FinalGatherRays: 1000
  52. m_FinalGatherContrastThreshold: .0500000007
  53. m_FinalGatherGradientThreshold: 0
  54. m_FinalGatherInterpolationPoints: 15
  55. m_AOAmount: 0
  56. m_AOMaxDistance: .100000001
  57. m_AOContrast: 1
  58. m_LODSurfaceMappingDistance: 1
  59. m_Padding: 0
  60. m_TextureCompression: 0
  61. m_LockAtlas: 0
  62. --- !u!196 &5
  63. NavMeshSettings:
  64. m_ObjectHideFlags: 0
  65. m_BuildSettings:
  66. agentRadius: .5
  67. agentHeight: 2
  68. agentSlope: 45
  69. agentClimb: .400000006
  70. ledgeDropHeight: 0
  71. maxJumpAcrossDistance: 0
  72. accuratePlacement: 0
  73. minRegionArea: 2
  74. widthInaccuracy: 16.666666
  75. heightInaccuracy: 10
  76. m_NavMesh: {fileID: 0}
  77. --- !u!1 &675165769
  78. GameObject:
  79. m_ObjectHideFlags: 0
  80. m_PrefabParentObject: {fileID: 0}
  81. m_PrefabInternal: {fileID: 0}
  82. serializedVersion: 4
  83. m_Component:
  84. - 4: {fileID: 675165770}
  85. - 114: {fileID: 675165771}
  86. m_Layer: 0
  87. m_Name: Sphere Prefab Manager
  88. m_TagString: Untagged
  89. m_Icon: {fileID: 0}
  90. m_NavMeshLayer: 0
  91. m_StaticEditorFlags: 0
  92. m_IsActive: 1
  93. --- !u!4 &675165770
  94. Transform:
  95. m_ObjectHideFlags: 0
  96. m_PrefabParentObject: {fileID: 0}
  97. m_PrefabInternal: {fileID: 0}
  98. m_GameObject: {fileID: 675165769}
  99. m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
  100. m_LocalPosition: {x: 0, y: 1, z: -10}
  101. m_LocalScale: {x: 1, y: 1, z: 1}
  102. m_Children: []
  103. m_Father: {fileID: 0}
  104. m_RootOrder: 3
  105. --- !u!114 &675165771
  106. MonoBehaviour:
  107. m_ObjectHideFlags: 0
  108. m_PrefabParentObject: {fileID: 0}
  109. m_PrefabInternal: {fileID: 0}
  110. m_GameObject: {fileID: 675165769}
  111. m_Enabled: 1
  112. m_EditorHideFlags: 0
  113. m_Script: {fileID: 11500000, guid: 4303f123a61864bfd9dc9c9e074ec027, type: 3}
  114. m_Name:
  115. m_EditorClassIdentifier:
  116. prefab: {fileID: 100000, guid: 1a9173555795045f5916faefe47662e5, type: 2}
  117. filename: SavedSpherePrefabs.txt
  118. buttonPositionX: 500
  119. --- !u!1 &1030674254
  120. GameObject:
  121. m_ObjectHideFlags: 0
  122. m_PrefabParentObject: {fileID: 0}
  123. m_PrefabInternal: {fileID: 0}
  124. serializedVersion: 4
  125. m_Component:
  126. - 4: {fileID: 1030674255}
  127. - 108: {fileID: 1030674256}
  128. m_Layer: 0
  129. m_Name: Point light
  130. m_TagString: Untagged
  131. m_Icon: {fileID: 0}
  132. m_NavMeshLayer: 0
  133. m_StaticEditorFlags: 0
  134. m_IsActive: 1
  135. --- !u!4 &1030674255
  136. Transform:
  137. m_ObjectHideFlags: 0
  138. m_PrefabParentObject: {fileID: 0}
  139. m_PrefabInternal: {fileID: 0}
  140. m_GameObject: {fileID: 1030674254}
  141. m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
  142. m_LocalPosition: {x: 0, y: 0, z: 0}
  143. m_LocalScale: {x: 1, y: 1, z: 1}
  144. m_Children: []
  145. m_Father: {fileID: 2048071827}
  146. m_RootOrder: 0
  147. --- !u!108 &1030674256
  148. Light:
  149. m_ObjectHideFlags: 0
  150. m_PrefabParentObject: {fileID: 0}
  151. m_PrefabInternal: {fileID: 0}
  152. m_GameObject: {fileID: 1030674254}
  153. m_Enabled: 1
  154. serializedVersion: 3
  155. m_Type: 2
  156. m_Color: {r: 1, g: 1, b: 1, a: 1}
  157. m_Intensity: 1
  158. m_Range: 50
  159. m_SpotAngle: 30
  160. m_CookieSize: 10
  161. m_Shadows:
  162. m_Type: 0
  163. m_Resolution: -1
  164. m_Strength: 1
  165. m_Bias: .0500000007
  166. m_Softness: 4
  167. m_SoftnessFade: 1
  168. m_Cookie: {fileID: 0}
  169. m_DrawHalo: 0
  170. m_ActuallyLightmapped: 0
  171. m_Flare: {fileID: 0}
  172. m_RenderMode: 0
  173. m_CullingMask:
  174. serializedVersion: 2
  175. m_Bits: 4294967295
  176. m_Lightmapping: 1
  177. m_ShadowSamples: 1
  178. m_ShadowRadius: 0
  179. m_ShadowAngle: 0
  180. m_IndirectIntensity: 1
  181. m_AreaSize: {x: 1, y: 1}
  182. --- !u!1 &1845902117
  183. GameObject:
  184. m_ObjectHideFlags: 0
  185. m_PrefabParentObject: {fileID: 0}
  186. m_PrefabInternal: {fileID: 0}
  187. serializedVersion: 4
  188. m_Component:
  189. - 4: {fileID: 1845902118}
  190. - 114: {fileID: 1845902119}
  191. m_Layer: 0
  192. m_Name: Cube Prefab Manager
  193. m_TagString: Untagged
  194. m_Icon: {fileID: 0}
  195. m_NavMeshLayer: 0
  196. m_StaticEditorFlags: 0
  197. m_IsActive: 1
  198. --- !u!4 &1845902118
  199. Transform:
  200. m_ObjectHideFlags: 0
  201. m_PrefabParentObject: {fileID: 0}
  202. m_PrefabInternal: {fileID: 0}
  203. m_GameObject: {fileID: 1845902117}
  204. m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
  205. m_LocalPosition: {x: 0, y: 1, z: -10}
  206. m_LocalScale: {x: 1, y: 1, z: 1}
  207. m_Children: []
  208. m_Father: {fileID: 0}
  209. m_RootOrder: 1
  210. --- !u!114 &1845902119
  211. MonoBehaviour:
  212. m_ObjectHideFlags: 0
  213. m_PrefabParentObject: {fileID: 0}
  214. m_PrefabInternal: {fileID: 0}
  215. m_GameObject: {fileID: 1845902117}
  216. m_Enabled: 1
  217. m_EditorHideFlags: 0
  218. m_Script: {fileID: 11500000, guid: 4303f123a61864bfd9dc9c9e074ec027, type: 3}
  219. m_Name:
  220. m_EditorClassIdentifier:
  221. prefab: {fileID: 100000, guid: e42377dd3afb54d2eb677a3fd520d6f8, type: 2}
  222. filename: SavedCubePrefabs.txt
  223. buttonPositionX: 0
  224. --- !u!1 &2048071826
  225. GameObject:
  226. m_ObjectHideFlags: 0
  227. m_PrefabParentObject: {fileID: 0}
  228. m_PrefabInternal: {fileID: 0}
  229. serializedVersion: 4
  230. m_Component:
  231. - 4: {fileID: 2048071827}
  232. - 20: {fileID: 2048071828}
  233. - 92: {fileID: 2048071830}
  234. - 124: {fileID: 2048071831}
  235. - 81: {fileID: 2048071829}
  236. m_Layer: 0
  237. m_Name: 1 Main Camera
  238. m_TagString: MainCamera
  239. m_Icon: {fileID: 0}
  240. m_NavMeshLayer: 0
  241. m_StaticEditorFlags: 0
  242. m_IsActive: 1
  243. --- !u!4 &2048071827
  244. Transform:
  245. m_ObjectHideFlags: 0
  246. m_PrefabParentObject: {fileID: 0}
  247. m_PrefabInternal: {fileID: 0}
  248. m_GameObject: {fileID: 2048071826}
  249. m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
  250. m_LocalPosition: {x: 0, y: 1, z: -10}
  251. m_LocalScale: {x: 1, y: 1, z: 1}
  252. m_Children:
  253. - {fileID: 1030674255}
  254. m_Father: {fileID: 0}
  255. m_RootOrder: 0
  256. --- !u!20 &2048071828
  257. Camera:
  258. m_ObjectHideFlags: 0
  259. m_PrefabParentObject: {fileID: 0}
  260. m_PrefabInternal: {fileID: 0}
  261. m_GameObject: {fileID: 2048071826}
  262. m_Enabled: 1
  263. serializedVersion: 2
  264. m_ClearFlags: 1
  265. m_BackGroundColor: {r: .192156866, g: .301960796, b: .474509805, a: .0196078438}
  266. m_NormalizedViewPortRect:
  267. serializedVersion: 2
  268. x: 0
  269. y: 0
  270. width: 1
  271. height: 1
  272. near clip plane: .300000012
  273. far clip plane: 1000
  274. field of view: 60
  275. orthographic: 0
  276. orthographic size: 100
  277. m_Depth: -1
  278. m_CullingMask:
  279. serializedVersion: 2
  280. m_Bits: 4294967295
  281. m_RenderingPath: -1
  282. m_TargetTexture: {fileID: 0}
  283. m_TargetDisplay: 0
  284. m_HDR: 0
  285. m_OcclusionCulling: 1
  286. m_StereoConvergence: 10
  287. m_StereoSeparation: .0219999999
  288. --- !u!81 &2048071829
  289. AudioListener:
  290. m_ObjectHideFlags: 0
  291. m_PrefabParentObject: {fileID: 0}
  292. m_PrefabInternal: {fileID: 0}
  293. m_GameObject: {fileID: 2048071826}
  294. m_Enabled: 1
  295. --- !u!92 &2048071830
  296. Behaviour:
  297. m_ObjectHideFlags: 0
  298. m_PrefabParentObject: {fileID: 0}
  299. m_PrefabInternal: {fileID: 0}
  300. m_GameObject: {fileID: 2048071826}
  301. m_Enabled: 1
  302. --- !u!124 &2048071831
  303. Behaviour:
  304. m_ObjectHideFlags: 0
  305. m_PrefabParentObject: {fileID: 0}
  306. m_PrefabInternal: {fileID: 0}
  307. m_GameObject: {fileID: 2048071826}
  308. m_Enabled: 1
  309. --- !u!1 &2085427415
  310. GameObject:
  311. m_ObjectHideFlags: 0
  312. m_PrefabParentObject: {fileID: 0}
  313. m_PrefabInternal: {fileID: 0}
  314. serializedVersion: 4
  315. m_Component:
  316. - 4: {fileID: 2085427416}
  317. - 114: {fileID: 2085427417}
  318. m_Layer: 0
  319. m_Name: Cylinder Prefab Manager
  320. m_TagString: Untagged
  321. m_Icon: {fileID: 0}
  322. m_NavMeshLayer: 0
  323. m_StaticEditorFlags: 0
  324. m_IsActive: 1
  325. --- !u!4 &2085427416
  326. Transform:
  327. m_ObjectHideFlags: 0
  328. m_PrefabParentObject: {fileID: 0}
  329. m_PrefabInternal: {fileID: 0}
  330. m_GameObject: {fileID: 2085427415}
  331. m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
  332. m_LocalPosition: {x: 0, y: 1, z: -10}
  333. m_LocalScale: {x: 1, y: 1, z: 1}
  334. m_Children: []
  335. m_Father: {fileID: 0}
  336. m_RootOrder: 2
  337. --- !u!114 &2085427417
  338. MonoBehaviour:
  339. m_ObjectHideFlags: 0
  340. m_PrefabParentObject: {fileID: 0}
  341. m_PrefabInternal: {fileID: 0}
  342. m_GameObject: {fileID: 2085427415}
  343. m_Enabled: 1
  344. m_EditorHideFlags: 0
  345. m_Script: {fileID: 11500000, guid: 4303f123a61864bfd9dc9c9e074ec027, type: 3}
  346. m_Name:
  347. m_EditorClassIdentifier:
  348. prefab: {fileID: 100000, guid: d19de4dae93704c57abd2f4b4f001ca1, type: 2}
  349. filename: SavedCylinderPrefabs.txt
  350. buttonPositionX: 250