Code

These are all the articles that have been tagged with "Code".

Application.dataPath points to /Assets

If you need a quick handle on the Assets folder in the Editor then you can simply use:

Start with first scene script

Sometimes when working on a scene in Unity you do not necessarily want the play mode to...

Composition vs Inheritance in Unity

Although inheritance is a powerful tool, composition is quite often the better approach...

Fixing bounding boxes for Unity cloth

If the bounds center of a skinned mesh renderer is outside the camera frustum it will n...

What is a NullReferenceException?

In this article, we explore what a compilation error, a stack trace, and a NullReferenc...

Byte code striptease

We all know about Managed Code stripping and that we have to manually mark code to not...

Tidbit: Material Property Blocks - DRAFT (3023-04-02)

Not a magic bullet for draw calls (there is some missinformation out there).

Unity and the not-so-scriptable render pipelines - DRAFT (3023-04-02)

Artikel zu "Unity set maximum shadow distance", in QUalitySettings (für BUiltIn),...

Unity Domain Reload - DRAFT (3023-04-02)

Warum gibt es den Domain reload. Was macht er und wann wird er ausgeführt. Mö...

Surprises with Scriptable Objects and private fields

It is general knowledge that the Unity Inspector shows every that is serialized unless...

Assembly Definitions - DRAFT (3023-04-02)

Assembly Definitions (optional definitions) + defines, wie defines erstellen für f...

Tidbit: KeyCode is not the answer - DRAFT (3023-04-02)

Input Abstraction: Input.GetButton("Cancel"); !!!! Nicht KeyCode.Esc etc. nutzen "Title...

The New Unity Input System - DRAFT (3023-04-02)

Liste mit Vergleich, altes Input vs neues InputSystem (is vermutlich bald nicht mehr re...

Unity [Attributes] to the rescue

Attributes are a true productivity booster. Here is a list of the handiest attributes i...

Unity choppy physics camera - DRAFT (3023-04-02)

OnUpdate vs OnFixedUpdate

Let the AI write the code

AIs have been all the rage for a while now. And rightfully so. Language AIs like ChatGP...

Unity Events with dynamic values

Something that's easily missing is the top "Dynamic" section in the function selection.

Unity Editor Global Key Event Listener - DRAFT (3023-04-19)

https://forum.unity.com/threads/4-6-editorapplication-modifierkeyschanged-how-to-find-o...

How to symbolicate an Android native stack in Unity

If your app crashes on a device then you will get a crash log and it may be a native ba...