XR Terra Class
XR Terra Class
  • 27
  • 10 107
C# Scripting With Materials in Unity
This video explains how you can use C# code to edit and set properties on materials in your Unity projects. We cover the difference between editing material instance vs the material asset itself, we show you how to find the names of Texture Maps in the shader definition so that you can edit them, and we explain how alpha and transparency works in Colors. We are using the Universal Render Pipeline materials for this video.
XRTerra Links:
Programs and Courses: www.xrterra.com/programs
Newsletter Signup: www.xrterra.com/mailing-list-signup/
Shaders, Materials, and Textures: th-cam.com/video/G0KMz65cmr4/w-d-xo.html
00:00 Intro
00:13 Creating two cubes with a material
00:53 Creating material script
01:21 Referencing the Mesh Renderer
02:01 Setting material instance color
02:34 Testing out color change
03:08 material vs sharedMaterial
03:47 sharedMaterial changes persist
04:25 Color type
05:01 Setting Color in the Inspector
05:38 Alpha channel
06:26 How do I set other material properties?
07:25 Opening up the shader code
08:38 SetColor("_EmissionColor", Color.blue)
09:39 GetTextureOffset("_BaseMap")
10:41 SetTextureOffset("_BaseMap", newOffset)
11:33 Finding the names of other texture maps
13:04 Changing the material through code
14:25 Outro
Instructor: Gregory Osborne
มุมมอง: 80

วีดีโอ

Skyboxes in Unity
มุมมอง 55หลายเดือนก่อน
This video explains the different types of skybox shaders in Unity and how to create your own custom skybox material for your scene. XRTerra Links: Programs and Courses: www.xrterra.com/programs Newsletter Signup: www.xrterra.com/mailing-list-signup/ 00:00 Introducing Skyboxes 00:42 Changing the skybox material 02:04 Getting 360 images from Google Maps with Panofetch 03:50 Turning 360 image int...
Sourcing External Textures And Models for Unity
มุมมอง 772 หลายเดือนก่อน
This video explains the different kinds of texture maps and how you can use ambientcg to find texture packs to help build realistic materials. It also mentions poly.pizza as a resource for free low poly models. Lastly, we cover how to use the Unity Asset Store to import models, animations, environments, and other assets, including how to solve pink shader errors on imported assets. XRTerra Link...
Shaders, Materials, And Textures in Unity
มุมมอง 1352 หลายเดือนก่อน
This video introduces the basics of rendering in Unity, the relationship between Shaders and Material assets, as well as how to use Texture maps on materials. XRTerra Links: Programs and Courses: www.xrterra.com/programs Newsletter Signup: www.xrterra.com/mailing-list-signup/ 00:00 Explaining Meshes 01:26 Low Poly aesthetic 02:11 Modeling software 02:44 Explaining Shaders 03:36 Explaining Mater...
Custom Input Actions With The XR Interaction Toolkit using Unity's New Input System Package
มุมมอง 3653 หลายเดือนก่อน
This video shows you how to detect your own inputs, such as buttons or joystick controls, by adding your own custom input action to the XRI Default Input Action asset and subscribing to their events through a C# script. XRTerra Links: Programs and Courses: www.xrterra.com/programs Newsletter Signup: www.xrterra.com/mailing-list-signup/ Your First VR Scene with the XR Interaction Toolkit in Unit...
Haptics with the XR Interaction Toolkit in Unity
มุมมอง 1093 หลายเดือนก่อน
This video explains how to get haptics on your controllers working within the XR Interaction Toolkit in Unity. We show the Interactor Haptic events, as well as how to trigger haptics through code. XRTerra Links: Programs and Courses: www.xrterra.com/programs Newsletter Signup: www.xrterra.com/mailing-list-signup/ 00:00 Intro to Haptics 02:02 XRITK Haptic Events 04:43 Trigger Haptics through cod...
XR Socket Interactor and XR Interaction Layer Masks
มุมมอง 1274 หลายเดือนก่อน
This video explains how to use the XR Socket Interactor component of the XR Interaction Toolkit in Unity to hold interactable objects at a set location. In addition, we discuss how you can use XR Interaction Layer Masks to manage interactions between interactors and interactables. XRTerra Links: Programs and Courses: www.xrterra.com/programs Newsletter Signup: www.xrterra.com/mailing-list-signu...
Getting Started with Unity: Downloading And Creating A New Project (2022.3.9)
มุมมอง 1084 หลายเดือนก่อน
This video guides XRTerra students through the process of downloading a version of Unity and creating a new project that uses the Universal Render Pipeline (URP). Unity Version: 2022.3.9 XRTerra Links: Programs and Courses: www.xrterra.com/programs Newsletter Signup: www.xrterra.com/mailing-list-signup/ 00:00 Intro 00:31 Unity Hub 02:24 Downloading Unity Hub 03:17 Personal License 04:27 Downloa...
Interactors and Interactables in the XR Interaction Toolkit in Unity
มุมมอง 2644 หลายเดือนก่อน
This video breaks down the function of XR Interactors and XR Interactables in Unity. We talk about the Ray and Direct interactors, as well as the Grab and Simple interactables. We explain how the Interactor Events can be used to codelessly change properties and call functions on components in your scene. XRTerra Links: Programs and Courses: www.xrterra.com/programs Newsletter Signup: www.xrterr...
Using UnityEvents
มุมมอง 435 หลายเดือนก่อน
This video explains how a UnityEvent functions, how to use one to codelessly make changes to properties and call functions on GameObjects in your scene, and how to make your own UnityEvents through code. XRTerra Links: Programs and Courses: www.xrterra.com/programs Newsletter Signup: www.xrterra.com/mailing-list-signup/ 00:00 Intro 00:39 Declaring a UnityEvent 01:50 Adding a UnityEvent callback...
VR Locomotion with the XR Interaction Toolkit in Unity
มุมมอง 3166 หลายเดือนก่อน
This video explains the different forms of VR locomotion given to us by the XR Interaction Toolkit package in Unity. We cover teleportation, continuous movement by the joystick, snap turn, and all the forms of grab movement including two handed rotation and scaling. We also discuss how to avoid motion sickness in VR. XRTerra Links: Programs and Courses: www.xrterra.com/programs Newsletter Signu...
XR Device Simulator 2.3.0 And Later
มุมมอง 1.5K8 หลายเดือนก่อน
This video explains how to use the XR Device Simulator to control a VR rig from the Unity Editor using just the keyboard and mouse. Unity updated the XR Device Simulator in the XR Interaction Toolkit package version 2.3.0, so if you're using an older version of the package look at our other video. XRTerra Links: Programs and Courses: www.xrterra.com/programs Newsletter Signup: www.xrterra.com/m...
XR Device Simulator 2.2.0 And Earlier
มุมมอง 2658 หลายเดือนก่อน
This video explains how to use the XR Device Simulator to control a VR rig from the Unity Editor using just the keyboard and mouse. Unity has updated the XR Device Simulator as of XR Interaction Toolkit package version 2.3.0, so if you're more updated use that video instead. XRTerra Links: Programs and Courses: www.xrterra.com/programs Newsletter Signup: www.xrterra.com/mailing-list-signup/ XR ...
Your First VR Scene with the XR Interaction Toolkit in Unity
มุมมอง 6739 หลายเดือนก่อน
This video explains how to get setup with your first VR scene using the XR Interaction Toolkit in Unity. We install all the necessary VR packages to build an app to your headset (we use the Meta Quest in the video). We also explain how to get Oculus Link setup in order to play VR directly from the Unity Editor. XRTerra Links: Programs and Courses: www.xrterra.com/programs Newsletter Signup: www...
C# Coroutines in Unity
มุมมอง 4610 หลายเดือนก่อน
This video explains how you can use coroutines to execute code over time. We explain how to wait for a set amount of seconds, how to wait until a condition is met, as well as how to combine coroutines with loops to fade properties slowly instead of all in one frame. XRTerra Links: Programs and Courses: www.xrterra.com/programs Newsletter Signup: www.xrterra.com/mailing-list-signup/ 00:00 What a...
C# For And While Loops in Unity
มุมมอง 4310 หลายเดือนก่อน
C# For And While Loops in Unity
C# Events in Unity
มุมมอง 2911 หลายเดือนก่อน
C# Events in Unity
C# Arrays And Lists in Unity
มุมมอง 7811 หลายเดือนก่อน
C# Arrays And Lists in Unity
Debugging And Troubleshooting in Unity
มุมมอง 65ปีที่แล้ว
Debugging And Troubleshooting in Unity
C# Functions in Unity
มุมมอง 75ปีที่แล้ว
C# Functions in Unity
C# Variables And References In Unity
มุมมอง 129ปีที่แล้ว
C# Variables And References In Unity
C# Hello World in Unity Breakdown
มุมมอง 118ปีที่แล้ว
C# Hello World in Unity Breakdown
Transforms And Parent Child Relationships in the Unity Hierarchy 2020.3.13
มุมมอง 81ปีที่แล้ว
Transforms And Parent Child Relationships in the Unity Hierarchy 2020.3.13
Tour Of Unity's Windows
มุมมอง 70ปีที่แล้ว
Tour Of Unity's Windows
Scene Window Navigation in Unity 2020.3.13f1
มุมมอง 69ปีที่แล้ว
Scene Window Navigation in Unity 2020.3.13f1
Unity Enter Safe Mode Error When Creating URP Project
มุมมอง 5Kปีที่แล้ว
Unity Enter Safe Mode Error When Creating URP Project
Getting Started with Unity : Downloading And Creating A New Project
มุมมอง 80ปีที่แล้ว
Getting Started with Unity : Downloading And Creating A New Project

ความคิดเห็น

  • @XRelabs
    @XRelabs 5 วันที่ผ่านมา

    man your are awsome, detailed and step by step , you just made me something I searched in paid courses and never found , you are a great teacher, thank you so much. OOh and you have online Courses you offer

  • @wironk9347
    @wironk9347 หลายเดือนก่อน

    Thank you! I was specifically searching for the "Allow Hovered Activate" functionality because I wanted to trigger an action with the trigger button and not the grab button. Your video was exactly what I needed and I even learned other interesting things :)

    • @xrterraclass
      @xrterraclass 12 วันที่ผ่านมา

      Finding the "Allow Hovered Activate" button is notoriously unintuitive for our students, because it's not on the actual interactable object itself but instead has to be found in a subsection of the interactor component, glad this video helped you find it.

  • @Ejdjdieiwjsbsksksmsk
    @Ejdjdieiwjsbsksksmsk หลายเดือนก่อน

    Thank you ♾️ My project would never exist if you didn’t help🙏

  • @frangagn22
    @frangagn22 หลายเดือนก่อน

    Excellent video, very clear. Thank you!

    • @xrterraclass
      @xrterraclass 12 วันที่ผ่านมา

      Glad it was helpful!

  • @Ejdjdieiwjsbsksksmsk
    @Ejdjdieiwjsbsksksmsk หลายเดือนก่อน

    Thanks bro this helped so much, I definitely needed a new skybox!

    • @xrterraclass
      @xrterraclass 12 วันที่ผ่านมา

      Glad we could help!

  • @videogamedevelopmentseries2706
    @videogamedevelopmentseries2706 หลายเดือนก่อน

    Excellent tutorial! Too few out there like this imo. Thank you!

    • @xrterraclass
      @xrterraclass หลายเดือนก่อน

      Thanks for the positive message!

  • @Rayears
    @Rayears 2 หลายเดือนก่อน

    Excellent video! This served as a concise and thorough introduction to the relationship between interactors and interactables, and answered all of my questions about simple vs grab interactables. I personally prefer to stay away from Unity Events due to the fact that they're hard to trace from the IDE. When you call a method from a Unity Event, there is no way to "Find All References" and understand how everything in a project interconnects. I've had much more success writing a custom classes that inherit from XRSimpleInteractable and overrides the various event methods. Food for thought :) Thanks

  • @Fubukio
    @Fubukio 2 หลายเดือนก่อน

    Your voice audio is kinda bad.

  • @ayushjha6560
    @ayushjha6560 3 หลายเดือนก่อน

    why you don't use XR Interaction toolkit version 3.0.1?

    • @xrterraclass
      @xrterraclass 2 หลายเดือนก่อน

      This video was recorded a while ago and used the most recent version of the XR Interaction Toolkit at the time. Everything in this video should still work the same.

  • @taeasticx
    @taeasticx 3 หลายเดือนก่อน

    doesn't have Universal rp in my package manager so what to do to remove these errors??

  • @WRDwyer
    @WRDwyer 3 หลายเดือนก่อน

    Thanks for the video, really helped me out! Ive given up trying to work out how to use the Meta SDK with the XR Interaction Toolkit, so have reverted back to basic haptics.

    • @xrterraclass
      @xrterraclass 2 หลายเดือนก่อน

      So glad we could help!

  • @saramojaddami6715
    @saramojaddami6715 4 หลายเดือนก่อน

    thank you so much this the most useful video after scrolling for two days <3

    • @xrterraclass
      @xrterraclass 4 หลายเดือนก่อน

      We are so glad it helped!

  • @aasciutti
    @aasciutti 4 หลายเดือนก่อน

    Thanks for the info! Really good to have this tool available!

    • @xrterraclass
      @xrterraclass 4 หลายเดือนก่อน

      It comes in handy way more than you'd think, especially when it comes to testing out multiplayer VR applications. Glad this video helped!

  • @Fbprivate
    @Fbprivate 4 หลายเดือนก่อน

    I have a question. Is it possible to telereport an object with me if I put this in a sort of cart which is in my xr origin ?

    • @xrterraclass
      @xrterraclass 4 หลายเดือนก่อน

      Well, if you make an XR Socket Interactor a child of the XR Origin, it'll move with you when you teleport.

  • @PolyyUnity
    @PolyyUnity 5 หลายเดือนก่อน

    there is 1 version only why😭

  • @Fbprivate
    @Fbprivate 6 หลายเดือนก่อน

    I think you saved me. I must activate a video on a virtual wall, based on a trigger enter exit event, if you walk in an area

  • @lilfernguy
    @lilfernguy 6 หลายเดือนก่อน

    I don't use Unity so not sure why this was recommended to me but the cube in the thumbnail looks so delicious I had to click and watch :P

  • @ankithgowda221
    @ankithgowda221 6 หลายเดือนก่อน

    Mine doesnt even open in safe mode. It just opens crash report

  • @_-VIS-_
    @_-VIS-_ 6 หลายเดือนก่อน

    My projects have been deleted 3 times cuz this. I’m so done with unitys trash ass engine. I starting coding 5 weeks ago and it’s already hard enough. I’m switching to unreal engine, which is even harder. Yay😊 I wanna break my fucking laptop😊.

    • @BlackYoshivr
      @BlackYoshivr 5 หลายเดือนก่อน

      lol same

  • @neurogoblin
    @neurogoblin 6 หลายเดือนก่อน

    Thanks, this was super helpful!

    • @xrterraclass
      @xrterraclass 6 หลายเดือนก่อน

      So glad we could help!

  • @Imperial_Dynamics
    @Imperial_Dynamics 6 หลายเดือนก่อน

    is there no way to tell from code whether a headset is attached and dynamically enable/disable the device simulator?

    • @xrterraclass
      @xrterraclass 6 หลายเดือนก่อน

      There's more information about this in this unity forum post: forum.unity.com/threads/how-to-detect-if-headset-is-available-and-initialize-xr-only-if-true.927134/ The short answer is it's kinda difficult and subject to change based on which platform you're using, and honestly it's safer to just leave the XR Device Simulator off and then enable it when you need it.

  • @IvyLi_Art
    @IvyLi_Art 6 หลายเดือนก่อน

    will unity solve the problem if i just leave it there?? mine opened in safe mode because of errors in my script

    • @xrterraclass
      @xrterraclass 6 หลายเดือนก่อน

      Unity will automatically resolve itself if you fix the errors in your script (and save). Until Unity can safely compile, it will remain in safe mode.

  • @CurseOfSeaPuppy
    @CurseOfSeaPuppy 7 หลายเดือนก่อน

    my game would not exist anymore if it weren't for you thanks sm

    • @xrterraclass
      @xrterraclass 7 หลายเดือนก่อน

      So glad we could help!

  • @bora1672
    @bora1672 9 หลายเดือนก่อน

    youre an amazing man!

  • @Jillydogg
    @Jillydogg 9 หลายเดือนก่อน

    I was stuck making my first project for so long... should have looked at what I was building in the build settings! Thanks a lot sample scene. THANK YOU!!

    • @xrterraclass
      @xrterraclass 8 หลายเดือนก่อน

      Glad we could help!

  • @EMkrazy
    @EMkrazy 11 หลายเดือนก่อน

    What if there's no "Universal RP"?

    • @xrterraclass
      @xrterraclass 11 หลายเดือนก่อน

      Entering Safe Mode happens when the project you're opening has Console errors, and it happens to avoid accidentally corrupting your project with bad code. This video was created for our students running into a problem with Unity version 2020.3.13f1 when they created a new Unity project with the Universal Render Pipeline. However, there are many reasons your project might open in safe mode. Typically opening the project and taking a look into the console will give you a hint as to what the problem is. Perhaps there a package that imported incorrectly. Maybe one of your scripts has a typo. Either way, the goal will be to get the Console to no longer have any errors, then you'll be able to open Unity normally.

    • @EMkrazy
      @EMkrazy 11 หลายเดือนก่อน

      If I create a new project, it will automatically ask me if I want to go to safe mode even I didn't put anything on that project. What could be the problem with that? The editor version I used is 2022.3.11f1 LTS because this is the version that they recommend.

    • @hasanfaysal7908
      @hasanfaysal7908 8 หลายเดือนก่อน

      @@EMkrazy same

    • @hasanfaysal7908
      @hasanfaysal7908 8 หลายเดือนก่อน

      @edwinluna5047 us

  • @TCMChip_Official
    @TCMChip_Official 11 หลายเดือนก่อน

    universal Rp aint there.

  • @pforprogramming9609
    @pforprogramming9609 ปีที่แล้ว

    Cant downgraded the urp

    • @yapability7881
      @yapability7881 ปีที่แล้ว

      same here, did you find a solution?

    • @xrterraclass
      @xrterraclass 11 หลายเดือนก่อน

      Entering Safe Mode happens when the project you're opening has Console errors, and it happens to avoid accidentally corrupting your project with bad code. This video was created for our students running into a problem with Unity version 2020.3.13f1 when they created a new Unity project with the Universal Render Pipeline. However, there are many reasons your project might open in safe mode. Typically opening the project and taking a look into the console will give you a hint as to what the problem is. Perhaps there a package that imported incorrectly. Maybe one of your scripts has a typo. Either way, the goal will be to get the Console to no longer have any errors, then you'll be able to open Unity normally. The newer versions of Unity have removed the button you can use to downgrade packages, in order to downgrade you have to use the plus button in the top left corner of the Package Manager, select "Add package by name", then type in the name of the package (i.e. com.unity.render-pipelines.universal) and underneath it type in the version number you want.

  • @myrzikthegamebrawlstars2895
    @myrzikthegamebrawlstars2895 ปีที่แล้ว

    Hello, I have the same error but when I click Safe mode the window does not open like yours, I do not understand what to do

    • @xrterraclass
      @xrterraclass ปีที่แล้ว

      Is this happening when you first create a new Unity Project, or is this an already existing project? This fix is primarily for when creating a new Unity Project with the Universal Render Pipeline, typically clicking "Enter Safe Mode" will open up a limited version of the Unity project that gives you access to the Package Manager. If nothing at all is opening after you click "Enter Safe Mode" then it may be possible that the Unity version needs to be reinstalled before you try to create a new project.

  • @tgeorge5832
    @tgeorge5832 ปีที่แล้ว

    thank you bro