Skip to content
HiroyukiHaga edited this page Oct 23, 2012 · 19 revisions

#LWF For Unity

Setup

Install Unity

  • Please download and install Unity3d. LWF works with free version of Unity.
  • http://unity3d.com/

Play demo project.

  1. Clone the "lwf-demo" project.
git clone git@github.com:gree/lwf-demo.git
  1. Launch Unity3d.
  2. Open Project Wizard with "File -> Open Project...", and click "Open Other..." for choosing project directory.
  3. Select "lwf-demo/unity/basic" directory. The project will be opened successfully.
  4. Double-click "Simple" icon in the "Project" tab to open an example scene.
  5. Click "Play" button in the top of menu. You will see logo, animated building and buttons.

Make your own Unity project.

  1. Clone the "lwf" project.
git clone git@github.com:gree/lwf.git
  1. Compile DLLs
lwf $: cd csharp/unity/build
lwf $: rake

(in /Users/github/lwf/csharp/unity/build)
lwf.dll:
lwf_editor.dll:

lwf $: ls
Rakefile           lwf.dll.mdb        lwf_editor.dll.mdb
lwf.dll            lwf_editor.dll
  1. Create you new Unity project.
  2. Create 3 Unity's special folders in "Project" tab such as
  • "Resources" : You can access all resources in this "Resources" folder by using UnityEngine.Resources class
  • "Editor" : Any scripts for Unity Editor should be under this folder.
  • "Plugins" : Plugin folder.
  1. Copy "lwf.dll" to your Unity project's "Plugins" folder. Copy "lwf_editor.dll" to your Unity project's "Editor" folder.

  2. Clone the "lwf-demo" project for getting example flash files.

git clone git@github.com:gree/lwf-demo.git
  1. Copy "gree_logo.lwfdata" folders in "flash" folder to your Unity project's "Resources" folder.
  2. Open your Unity project's "Resources/gree_logo.lwfdata", and rename "gree_logo.lwf" to "gree_logo.bytes". Remove gree_logo.* files except for gree_logo.bytes and gree_logo_0.png file.

Clone this wiki locally