Zum Inhalt springen
Binary Impact GmbH Logo Binary Impact GmbH Logo
  • Home
  • Über uns
  • Leistungen
  • Impacts
  • UnityTips
  • Home
  • Über uns
  • Leistungen
  • Impacts
  • UnityTips
  • Home
  • Über uns
  • Leistungen
  • Impacts
  • UnityTips

All of our UnityTips

Follow us on Twitter so you don’t miss any of our #UnityTips in the future.

  • All
  • Animation
  • Audio
  • Coding
  • Editor
  • HDRP
  • Performance
  • Physics
  • Scriptable Objects
  • Shadergraph
  • UI
  • VFX Graph
  • #UnityTips Do you develop for #Android?

    Try the Android Logcat Package to get debug messages directly in unity and much more presentable than the console 😉#indiedev #gamedev pic.twitter.com/WPuvfpQhuT

    — Binary Impact (@BinaryImpactG) May 17, 2022

  • #UnityTips If you want to check if an object is in front of another object you can use the InverseTransformPoint method. As long as you follow the "z is forward" logic

    Useful for something like visibility checks.

    Something like this 👇
    #gamedev #indiedev pic.twitter.com/drn09axYXs

    — Binary Impact (@BinaryImpactG) May 10, 2022

  • #UnityTips Today we have three ways of running through a list of derived classes. See our code example for more details.#coding #indiedev #gamedev pic.twitter.com/XHOW1ZbrqV

    — Binary Impact (@BinaryImpactG) May 3, 2022

  • #UnityTips If you use an unity VideoPlayer with an URL you might want to resize your raw image.

    The clip won't be available for the calculations.

    Subscribe to the prepareCompleted event and use the internal texture for that purpose 👇#gamedev #indiedev pic.twitter.com/IKByjw6GC8

    — Binary Impact (@BinaryImpactG) April 26, 2022

  • #UnityTips Did you ever need a const dictionary?

    According to the C# specification, switch-case tables are compiled to constant hash jump tables. 🤔🤨

    So it looks ugly but it's basically a compile time dictionary! 😆
    (For the example we used an enum)#coding #indiedev #gamedev pic.twitter.com/sldZDrBja4

    — Binary Impact (@BinaryImpactG) April 19, 2022

  • #UnityTips How to get started with unit tests in your project:
    Select TestRunner from the Window->General menu and create an assembly.

    In Visual Studio Right Click the assembly and add a class. Write a simple test with the [Test] attribute.

    Run the Test!#gamedev #indiedev pic.twitter.com/wVmKxL2bvs

    — Binary Impact (@BinaryImpactG) April 12, 2022

  • #UnityTips
    Ever needed to set some project settings and found out there is no API access to it?

    You can access and edit those from the asset files in the ProjectSettings folder in your project.

    Open the files in a text editor to get the settings names.#indiedev #gamedev pic.twitter.com/NzRmvaBBXj

    — Binary Impact (@BinaryImpactG) April 5, 2022

  • #UnityTips Of course it is common knowledge to add the attribute [RequireComponent] to your scripts to have unity put those Components onto your GameObject.

    But did you know you can add multiple types to [RequireComponent]?#gamedev #indiedev pic.twitter.com/00Gj1kNsi3

    — Binary Impact (@BinaryImpactG) March 29, 2022

  • #UnityTips Use the [Delayed] attribute in your editor code to prevent instantaneous execution of OnValidate.

    It will only execute when enter is pressed or the field looses focus.

    Useful if you have expensive calculations tied to the field.#indiedev #gamedev pic.twitter.com/Lj3Y9shZ78

    — Binary Impact (@BinaryImpactG) March 22, 2022

  • #UnityTips Use the [ColorUsage] attribute to control the handling of your scripts color fields.

    You can enable hdr in the dialog and/or disable alpha depending on the parameters.#indiedev #gamedev pic.twitter.com/xoqwpK5xcd

    — Binary Impact (@BinaryImpactG) March 15, 2022

  • #UnityTips Improve handling your enums in the inspector by giving them a better description for the values with the [InspectorName] attribute 😎#gamedev #indiedev pic.twitter.com/5UO5g6o5G4

    — Binary Impact (@BinaryImpactG) March 8, 2022

  • #UnityTips Make sure your own code runs before the default MonoBehaviour methods / messages when instantiating new GameObjects by disabling the object first.

    Awake, OnEnable and Start will not run on deactivated objects.#coding #indiedev #gamedev pic.twitter.com/2WK0FaTbv5

    — Binary Impact (@BinaryImpactG) March 1, 2022

Zurück123···17Vor
logo

Binary Impact GmbH
Südstraße 24
56412 Niederelbert

Seiten

  • Jobs
  • Presse
  • Kontakt
  • Impressum
  • Datenschutz

Kontakt

Kontaktieren Sie uns

kontakt@binaryimpact.de +49 2667 7569877
Kontakt
© Copyright    |  Binary Impact GmbH
YouTubeFacebookTwitterInstagramDiscordTwitchBeam auf SteamGame VerbandGame Verband
Page load link

Verwendung von Cookies und personenbezogenen Daten

Diese Webseite nutzt Cookies, um dir das bestmögliche Erlebnis zu gewährleisten. Wenn du die Seite weiter nutzt, erklärst du dich mit unseren Datenschutzbestimmungen einverstanden.
Zum Impressum | Zur Datenschutzerklärung
Akzeptieren