Skip to content
Strée Eloi edited this page Dec 16, 2017 · 34 revisions

Le développement d’outils visuels pour faciliter le travail des artistes et designers

-Look for: How to edit Unity Editor
-Manuel

Useful class

Attribut de variable

Manuel Unity- Script Info - Unity Learn video - Manuel C#

Connaissez-vous ..

Enumeration

System.Serializable

Manuel

MonoBehaviour Editor

  • OnValidate()
  • OnReset()

ExecuteInEditMode

Manuel - Unity Learn Video

Edition de script

Manuel - Unity Tutorial

Edition de menu

Manuel Shortcut: % (ctrl on Windows, cmd on macOS), # (shift), & (alt)
[MenuItem("MyMenu/Do Something")]

Edition de fenêtre

Manuel -TreeView

Edition de Gizmo

Manuel

Scriptable Object

Scriptable Objects are amazing data containers. They don't need to be attached to a GameObject in a scene. They can be saved as assets in our project. Most often, they are used as assets which are only meant to store data, but can also be used to help serialize objects and can be instantiated in our scenes. Manual - Unity Learn Video

Extension Methode

Exemple

  • Can we extend from static class like Debug ? W:No :(

C# et la réflexion

Manuel - C# Basic: Reflection

  • Lock the inspector

Platform Compilation / precompiled code

Manuel

Online Video

Youtube

Udemy

Bonus

  • Set up Script Icon: 1, 2 Créer un Fichier au chemain suivant "Assets/Gizmos/MonNomClass icon.png" avec un espace dans le nom du fichier
    PS: Do not work with namespace

_____________________________-

Hummm...

  • UnityEvent don't work at runtime :(
Clone this wiki locally