Skip to content

Setting Up

Rycul edited this page Jul 17, 2013 · 1 revision

Getting it to work in the Unity Editor

  • Build the MSVC project and copy the resulting .DLL file (AwesomiumUnity.dll) to your Unity project's Assets\Plugins folder.
  • Copy the following files from your Awesomium SDK installation directory's build\bin folder to your Unity installation directory's Editor folder (NOT your project Assets\Editor folder!).
    • awesomium_process.exe
    • awesomium.dll
    • icudt.dll
    • libEGL.dll
    • libGLESv2.dll
    • xinput9_1_0.dll
    • avcodec-53.dll
    • avformat-53.dll
    • avutil-51.dll
  • Copy the folder UnityScripts\AwesomiumUnity to your Unity project's Assets folder (or any subdirectory within it).
  • Open your Unity project
  • Create a GameObject
  • Add either a GUITexture component or a Renderer component with a material and a MeshCollider component to your GameObject
  • Add the AwesomiumUnityWebTexture component to your GameObject
  • Hit play

Getting it to work for a standalone .exe

  • Build the MSVC project and copy the resulting .DLL file (AwesomiumUnity.dll) to the same folder as your executable.
  • Copy the following files from your Awesomium SDK installation directory's build\bin folder to the same folder as your executable.
    • awesomium_process.exe
    • awesomium.dll
    • icudt.dll
    • libEGL.dll
    • libGLESv2.dll
    • xinput9_1_0.dll
    • avcodec-53.dll
    • avformat-53.dll
    • avutil-51.dll
  • Copy the folder UnityScripts\AwesomiumUnity to your Unity project's Assets folder (or any subdirectory within it).
  • Open your Unity project
  • Create a GameObject
  • Add either a GUITexture component or a Renderer component with a material and a MeshCollider component to your GameObject
  • Add the AwesomiumUnityWebTexture component to your GameObject
  • Build an executable (NOTE: You'll probably have to have AwesomiumUnity.dll in your Assets\Plugins folder as well before the build process will succeed).

Clone this wiki locally