You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
55 lines
3.0 KiB
55 lines
3.0 KiB
8 years ago
|
# About FungusLua # {#lua_about_funguslua}
|
||
8 years ago
|
[TOC]
|
||
8 years ago
|
|
||
|
FungusLua is a simple way to embed Lua scripting into your Unity project. Lua is an easy to learn scripting language so it's a great way to empower artists, writers and designers to use more of the power of Unity.
|
||
|
|
||
8 years ago
|
At its core, FungusLua allows you to control any Unity object from Lua script. It has useful utilities for using %Fungus flowcharts and dialogs, persisting variables between scene loads, localization, and working with the Unity Test Tools.
|
||
8 years ago
|
|
||
8 years ago
|
We made FungusLua in response to requests from the %Fungus community for a way to script %Fungus commands from a text file or spreadsheet. We figured that if people are going to be writing commands in text files, why not go all the way and add a powerful embedded scripting language?
|
||
8 years ago
|
|
||
8 years ago
|
FungusLua comes as part of the [%Fungus asset] available on the Unity Asset Store.
|
||
8 years ago
|
|
||
8 years ago
|
# Tutorial Video # {#lua_tutorial_video}
|
||
8 years ago
|
|
||
|
This video shows how to use many of the features available in FungusLua. It's more of a demonstration than a step-by-step tutorial, but hopefully between this video, the docs and the forums you'll have enough to figure it all out :)
|
||
|
|
||
8 years ago
|
@htmlonly
|
||
|
<div align="center">
|
||
8 years ago
|
<iframe width="560" height="315" src="https://www.youtube.com/embed/M_Oo9FpVTos" frameborder="0" allowfullscreen></iframe>
|
||
8 years ago
|
</div>
|
||
|
@endhtmlonly
|
||
8 years ago
|
|
||
8 years ago
|
# FungusLua without Fungus # {#funguslua_without_fungus}
|
||
8 years ago
|
|
||
8 years ago
|
FungusLua can easily be used on its own if you don't need the rest of the functionality in %Fungus.
|
||
8 years ago
|
|
||
8 years ago
|
1. In the project window, move the %Fungus/Thirdparty/FungusLua folder up to the root of the project.
|
||
|
2. Delete the %Fungus and FungusExamples folders.
|
||
8 years ago
|
|
||
8 years ago
|
The Tools > %Fungus menu will now only show options for creating FungusLua objects. Obviously you won't be able to use %Fungus functions like say(), menu(), etc. anymore, but you can still use LuaEnvironment, LuaBindings, LuaScript to add Lua scripting to your game.
|
||
8 years ago
|
|
||
8 years ago
|
# About Lua # {#about_lua}
|
||
8 years ago
|
|
||
8 years ago
|
[Lua] is a powerful, fast, lightweight, embeddable scripting language. It is a popular language for game development and supporting user modding. The standard resource for learning Lua is [Programming in Lua].
|
||
8 years ago
|
|
||
8 years ago
|
![Lua logo]
|
||
8 years ago
|
|
||
8 years ago
|
# About MoonSharp # {#about_moonsharp}
|
||
8 years ago
|
|
||
8 years ago
|
[MoonSharp] is an open source implementation of the Lua scripting language written entirely in C#.
|
||
8 years ago
|
|
||
8 years ago
|
![MoonSharp Logo]
|
||
8 years ago
|
|
||
|
FungusLua is essentially a set of wrapper components built on top of MoonSharp which make it easier to use Lua scripting directly in the Unity editor. MoonSharp does all the hard work really and is a completely awesome project :)
|
||
|
|
||
8 years ago
|
The [MoonSharp tutorials] and [MoonSharp forum] are great resources to learn how MoonSharp works, especially for more advanced usage.
|
||
|
|
||
|
[Lua]: http://www.lua.org/about.html
|
||
8 years ago
|
[%Fungus asset]: http://u3d.as/f0T
|
||
8 years ago
|
[Programming in Lua]: http://www.lua.org/pil/1.html
|
||
|
[MoonSharp]: http://www.moonsharp.org
|
||
|
[MoonSharp tutorials]: http://www.moonsharp.org/getting_started.html
|
||
|
[MoonSharp forum]: https://groups.google.com/forum/#!forum/moonsharp
|
||
|
|
||
|
[Lua logo]: ./fungus_lua/lua.png
|
||
|
[MoonSharp Logo]: ./fungus_lua/moonsharp.png
|