-
Notifications
You must be signed in to change notification settings - Fork 163
Forunity
HiroyukiHaga edited this page Oct 23, 2012
·
19 revisions
#LWF For Unity
- Please download and install Unity3d. LWF works with free version of Unity.
- http://unity3d.com/
- Clone the "lwf-demo" project.
git clone git@github.com:gree/lwf-demo.git
- Launch Unity3d.
- Open Project Wizard with "File -> Open Project...", and click "Open Other..." for choosing project directory.
- Select "lwf-demo/unity/basic" directory. The project will be opened successfully.
- Double-click "Simple" icon in the "Project" tab to open an example scene.
- Click "Play" button in the top of menu. You will see logo, animated building and buttons.
- Clone the "lwf" project.
git clone git@github.com:gree/lwf.git
- 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
- Create you new Unity project.
- 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.
-
Copy "lwf.dll" to your Unity project's "Plugins" folder. Copy "lwf_editor.dll" to your Unity project's "Editor" folder.
-
Clone the "lwf-demo" project for getting example flash files.
git clone git@github.com:gree/lwf-demo.git
- Copy "gree_logo.lwfdata" folders in "flash" folder to your Unity project's "Resources" folder.
- 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.