Hello Guest

Author Topic: Error when building for WebPlayer or Google Chrome  (Read 3760 times)

CrowbarSka

  • Newbie
  • *
  • Posts: 3
    • View Profile
Error when building for WebPlayer or Google Chrome
« on: February 20, 2013, 05:29:28 pm »
I deploying a Google Native Client build, but I just got the following error in the console and nothing was created.

Quote
Assets/TK2DROOT/tk2d/tk2dIndex.cs(130,97): error CS0117: `System.IO.File' does not contain a definition for `GetLastWriteTime'

The same error displays when I try to make a web player build too, and there are serious rendering issues with the output which I can't even begin to describe. I just get my skybox with a white circle in the middle!

It's supposed to look like this:





But it actually looks like this:



I've no idea what this error means or why I can't make a web player build. Standalone builds work fine on all platforms.

Can anyone help? Is this a problem with Unity itself or 2D Toolkit?

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Error when building for WebPlayer or Google Chrome
« Reply #1 on: February 22, 2013, 12:05:19 am »
Please move tk2dIndex.cs to Assets/TK2DROOT/tk2d/Editor/tk2dIndex.cs
This file was moved in a previous build, but Unity doesn't move files during upgrades.

I can't say for certain what the rendering glitch is in your web player build... do you use any custom shaders?

CrowbarSka

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: Error when building for WebPlayer or Google Chrome
« Reply #2 on: March 11, 2013, 03:17:25 pm »
Sorry for the slow reply. This seems to have fixed the issue! Thank you for your help!