Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Unity3D First Lesson

Oursky Limited
January 20, 2014
160

Unity3D First Lesson

Introduction to Unity3D engine

Oursky Limited

January 20, 2014
Tweet

Transcript

  1. Unity Unity is a game development ecosystem: a powerful rendering

    engine fully integrated with a complete set of intuitive tools and rapid workflows to create interactive 3D and 2D content. http://unity3d.com/
  2. Disclaimer This sharing section is about how to create a

    3D game with Unity3D engine. I have no knowledge about making a 2D game with it. (Please ask Kenji :p)
  3. Language for Scripts C# UnityScript Based on JavaScript Boo http://boo.codehaus.org/

    A stablished object oriented statically typed programming language
  4. Language for Scripts Maximum Features C# Boo Simplicity Boo UnityScript

    General Language Documentation C# Unity Specific Tutorials UnityScript C# iPhone development UnityScript C#
  5. Object: Rotation You can do this safely: transform.rotation = Quaternion.AngleAxis(90,

    Vector3.up); or transform.rotation = Quaternion.Euler(0, 90, 0); or transform.Rotate (0,0,90);
  6. More: Lerp Use Lerp to ‘Linearly Interpolate’ (smoothly transition) between

    values for various data types Mathf.Lerp() Vector3.Lerp() Quaternion.Lerp() Lerp
  7. GUI: NGUI An asset from Assets Store NGUI: Next-Gen UI

    kit NGUI Standard single-seat license: $95 NGUI Professional single-seat license: $200 NGUI Site License, unlimited developers in a single studio: $2000 http://www.tasharen.com/?page_id=140
  8. GUI: UnityGUI Basically you can use Box Button Toggle Label

    Text Field Text Area Window Horizontal Slider Vertical Slider Horizontal Scollbar Vertical Scrollbar
  9. GUI: UnityGUI Set up GUI inside OnGUI() void OnGUI() {

    GUI.skin = MyGUISkin; if (GUI.Button(new Rect(0,0,50,50), "Text on Image", " MyNewStyle")) GUI.Label(new Rect(100, 0, 50, 50), "", " MyNewStyle"); } GUI
  10. Support Platforms Notes for multi-platforms • Handle touches and keyboard

    input • If you need native features (e.g. iTunes), need to write plugins yourself • May consider to buy iOS PRO or Android PRO for all features on mobile
  11. Assets Store 3D Models Animation Audio Complete Projects Editor Extensions

    Particle Systems Scripting Services Shaders Textures & Materials https://www.assetstore.unity3d.com/