Difference between revisions of "Unity Sandbox"

From Wikicliki
Jump to: navigation, search
 
(15 intermediate revisions by the same user not shown)
Line 1: Line 1:
 +
* [[Unity AR Butterfly]]
 +
* [[Unity Course Notes]]
 +
* [[Unity Interface]]
 +
* [[Studying for the Unity Exam]]
  
== Create An Augmented Reality App Webinar by Gen Infiniti Academy, 13 Aug 2020, 7.30pm-9.30pm ==
+
<hr>
* Change build settings to Android/mobile
+
 
* Delete Main camera and Directional Light
+
'''Video Player in Unity'''
* Window > Package Manager > AR Foundation > Install
+
 
* Window > Package Manager > ARCore XD Plugin > Install
+
# Import video into Assets
* Window > Package Manager > ARkit Xr Plugin > Install
+
# Create Render Texture and change dimensions of render texture to match video
* Rightclick on Hierarchy Window > XR > AR Session origin
+
# Create Material (URP/Lit) and drag Render Texture into Base Map
* Double click the tiny AR Session origin > look under inspector > tag: MainCamera
+
# Create Video Player in Hierarchy and link the video clip to the Render Texture
* Rightclick on Hierarchy Window > XR > AR Session (coordinates the real world)
+
 
* Rightclick on Hierarchy Window > XR > AR Default Plane
+
'''Spatial audio'''
* Click on AR Session Origin in Hierarchy > Look in Inspector > Add Component > AR Raycast Manager (checks for floor)
+
# Spatial Blend from 2D to 3D.
* Click on AR Session Origin in Hierarchy > Look in Inspector > Add Component > AR Plane Manager (allows you to tag and project things)
+
# Volume Rolloff from logarithmic to linear.
* Now we want to add a plane prefab, first we create a folder in project called “prefabs”
+
# Set Minimum and Maximum distance.
* Drag the AR Default Plane into the Prefabs folder
+
 
* Drag the blue AR Default Prefab into inspector slot for AR Session Origin > plane manager > plane prefab
+
'''Optimising VR in Unity'''
* Create in project a scripts folder
+
* https://learn.unity.com/tutorial/optimizing-your-vr-ar-experiences
* Create a new C# script “PlaceOnPlane”
 
* Drag and drop this script into AR session origin
 
* Download free asset butterfly
 
* Double click on FBX
 
* Double click on Materials
 
* Select second sphere (blue metallic) butterfly_Albedo select the material in emissions
 
* Assets > Butterfly Animated > Prefab > left click on butterfly and drag it inside Place On Place Model (inside AR Session Origin)
 
* Project Settings > Player > Other setting > Identification > Minimum API Level > Set to Android 7.1
 
* Build and Run
 

Latest revision as of 06:27, 15 May 2022


Video Player in Unity

  1. Import video into Assets
  2. Create Render Texture and change dimensions of render texture to match video
  3. Create Material (URP/Lit) and drag Render Texture into Base Map
  4. Create Video Player in Hierarchy and link the video clip to the Render Texture

Spatial audio

  1. Spatial Blend from 2D to 3D.
  2. Volume Rolloff from logarithmic to linear.
  3. Set Minimum and Maximum distance.

Optimising VR in Unity