Logo video2dn
  • Сохранить видео с ютуба
  • Категории
    • Музыка
    • Кино и Анимация
    • Автомобили
    • Животные
    • Спорт
    • Путешествия
    • Игры
    • Люди и Блоги
    • Юмор
    • Развлечения
    • Новости и Политика
    • Howto и Стиль
    • Diy своими руками
    • Образование
    • Наука и Технологии
    • Некоммерческие Организации
  • О сайте

Скачать или смотреть Using Debug.DrawLine and Debug.DrawRay to Visually Debug Unity 3D - Quick Tip

  • World of Zero
  • 2020-03-17
  • 48716
Using Debug.DrawLine and Debug.DrawRay to Visually Debug Unity 3D - Quick Tip
world of zerolets makequick tipquick tipsunityunity 3dunity (game engine)unity engineunity 3d game enginecsharpc#quicktipDebug.DrawLineDebug.DrawRaydebug information in UnityDraw debug information in unitydebuggingdebugunity debugUnityEngineDebug Unity 3DC# unity Debug.DrawLineC# Unity Debug.DrawRayUnity Debug.DrawLineUnity Debug.DrawRayDebug DrawLineDebug DrawRayDebug Draw LineDebug Draw RayDebug RaycastExampletutorialray
  • ok logo

Скачать Using Debug.DrawLine and Debug.DrawRay to Visually Debug Unity 3D - Quick Tip бесплатно в качестве 4к (2к / 1080p)

У нас вы можете скачать бесплатно Using Debug.DrawLine and Debug.DrawRay to Visually Debug Unity 3D - Quick Tip или посмотреть видео с ютуба в максимальном доступном качестве.

Для скачивания выберите вариант из формы ниже:

  • Информация по загрузке:

Cкачать музыку Using Debug.DrawLine and Debug.DrawRay to Visually Debug Unity 3D - Quick Tip бесплатно в формате MP3:

Если иконки загрузки не отобразились, ПОЖАЛУЙСТА, НАЖМИТЕ ЗДЕСЬ или обновите страницу
Если у вас возникли трудности с загрузкой, пожалуйста, свяжитесь с нами по контактам, указанным в нижней части страницы.
Спасибо за использование сервиса video2dn.com

Описание к видео Using Debug.DrawLine and Debug.DrawRay to Visually Debug Unity 3D - Quick Tip

Unity provides a series of tools for registering Debug information in our games. The most commonly used functions are the logging ones like `Debug.Log()` or `Debug.LogError()` which can print debug messages to your editors console or to a log file in published games. However there are additional features that you can take advantage of that make debugging and understanding your game a bit easier inside the Unity editor. The functions that enables this are the `Debug.DrawLine` and `Debug.DrawRay` functions. They enable you to draw lines and rays within your Unity scene view without having to manually configure Gizmos. This means you can invoke these functions from anywhere in your code and get useful visual debugging information drawn out for you. For our example we'll be using the `Update` method, but you can use this throughout your MonoBehaviors when you need to debug things.

A simple example that draws a white line in your scene view between the attached game object and a target transformation.

```csharp
Transform target; // A target game object or transform to draw a line to.
Debug.DrawLine(this.transform.position, target.position);
```

There are additional parameters you may overload the `Debug.DrawLine` function with to customize the color, draw the line for a longer period of time and modify how the line interacts with the depth of your scene. For example this will draw a cyan line or 1 second and ignore depth in your scene (the line will not be occluded by objects in front of it).

```csharp
Transform target; //A target game object or transform to draw a line to.
Debug.DrawLine(this.transform.position, target.position, Color.cyan, 1, false);
```

You can read more about the different features of `Debug.DrawLine` here: https://docs.unity3d.com/ScriptRefere...

Join the World of Zero Discord Server:   / discord  

Комментарии

Информация по комментариям в разработке

Похожие видео

  • О нас
  • Контакты
  • Отказ от ответственности - Disclaimer
  • Условия использования сайта - TOS
  • Политика конфиденциальности

video2dn Copyright © 2023 - 2025

Контакты для правообладателей [email protected]