Put-stuff-on-table #4
@ -33,6 +33,9 @@ public class SampleVirtualFrames : MonoBehaviour
 | 
			
		||||
 | 
			
		||||
    public SimpleResizable _tablePrefab;
 | 
			
		||||
 | 
			
		||||
    private bool stuffPlaced = false;
 | 
			
		||||
    public GameObject _cube;
 | 
			
		||||
 | 
			
		||||
    void Awake()
 | 
			
		||||
    {
 | 
			
		||||
        MarcsWebLogger.Log("SampleVirtualFrames::Awake()");
 | 
			
		||||
@ -68,6 +71,13 @@ public class SampleVirtualFrames : MonoBehaviour
 | 
			
		||||
                            dimensions += prefab.GetComponent<ResizablePadding>().dimensionPadding;
 | 
			
		||||
                        }
 | 
			
		||||
                        resizer.CreateResizedObject(dimensions, sceneAnchors[i].gameObject, prefab);
 | 
			
		||||
 | 
			
		||||
                        // now place the cubes
 | 
			
		||||
                        if (stuffPlaced == false)
 | 
			
		||||
                        {
 | 
			
		||||
                            Instantiate(_cube, sceneAnchors[i].gameObject.transform.position + new Vector3(0, 0, 0.3f), Quaternion.Euler(0, 90, 0));
 | 
			
		||||
                            stuffPlaced = true;
 | 
			
		||||
                        }
 | 
			
		||||
                    }
 | 
			
		||||
                    catch (Exception e)
 | 
			
		||||
                    {
 | 
			
		||||
 | 
			
		||||
							
								
								
									
										1146
									
								
								Assets/Prefabs/CubeStack.prefab
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										1146
									
								
								Assets/Prefabs/CubeStack.prefab
									
									
									
									
									
										Normal file
									
								
							
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							
							
								
								
									
										7
									
								
								Assets/Prefabs/CubeStack.prefab.meta
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										7
									
								
								Assets/Prefabs/CubeStack.prefab.meta
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,7 @@
 | 
			
		||||
fileFormatVersion: 2
 | 
			
		||||
guid: 0060eac09cae0f53086de177fdede780
 | 
			
		||||
PrefabImporter:
 | 
			
		||||
  externalObjects: {}
 | 
			
		||||
  userData: 
 | 
			
		||||
  assetBundleName: 
 | 
			
		||||
  assetBundleVariant: 
 | 
			
		||||
@ -134,7 +134,7 @@ Rigidbody:
 | 
			
		||||
  m_IsKinematic: 1
 | 
			
		||||
  m_Interpolate: 0
 | 
			
		||||
  m_Constraints: 0
 | 
			
		||||
  m_CollisionDetection: 1
 | 
			
		||||
  m_CollisionDetection: 2
 | 
			
		||||
--- !u!114 &7232826476857652024
 | 
			
		||||
MonoBehaviour:
 | 
			
		||||
  m_ObjectHideFlags: 0
 | 
			
		||||
 | 
			
		||||
@ -2759,6 +2759,7 @@ MonoBehaviour:
 | 
			
		||||
  _doorPrefab: {fileID: 0}
 | 
			
		||||
  _windowPrefab: {fileID: 0}
 | 
			
		||||
  _tablePrefab: {fileID: 7232826476857652024, guid: 8af50d88fb696eaa19d324d7c74e8c0b, type: 3}
 | 
			
		||||
  _cube: {fileID: 9146634523021991380, guid: 0060eac09cae0f53086de177fdede780, type: 3}
 | 
			
		||||
--- !u!1 &835441841
 | 
			
		||||
GameObject:
 | 
			
		||||
  m_ObjectHideFlags: 0
 | 
			
		||||
 | 
			
		||||
@ -139,6 +139,8 @@ PlayerSettings:
 | 
			
		||||
  bundleVersion: 0.1
 | 
			
		||||
  preloadedAssets:
 | 
			
		||||
  - {fileID: 11400000, guid: 29d72bf9f28086693968cedbdc8f08cd, type: 2}
 | 
			
		||||
  - {fileID: 11400000, guid: 541751c4fa90967d68ef779a22ee43f3, type: 2}
 | 
			
		||||
  - {fileID: -3127938587913570544, guid: 8eb28e39ec717d0799039f01965f0533, type: 2}
 | 
			
		||||
  metroInputSource: 0
 | 
			
		||||
  wsaTransparentSwapchain: 0
 | 
			
		||||
  m_HolographicPauseOnTrackingLoss: 1
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user