Coder Social home page Coder Social logo

Comments (10)

RobDangerous avatar RobDangerous commented on July 22, 2024 1

OK, moving it up on my todo list.

from khamake.

RobDangerous avatar RobDangerous commented on July 22, 2024

Currently you'd have to downgrade to an older Kha revision. Have to do some updates to the shader compiler to get it working again...

from khamake.

jeremyfa avatar jeremyfa commented on July 22, 2024

I see, thanks for the feedback!

Do you know which older version/commit of Kha I should use if I want to make it work on Unity?

from khamake.

RobDangerous avatar RobDangerous commented on July 22, 2024

You can give Kode/Kha@0eb1ae1#diff-e2aff9328f2f36d0ec21b3cccb596a03 a go but it's pretty old.

from khamake.

jeremyfa avatar jeremyfa commented on July 22, 2024

Thanks! I will give it a try just to see if unity export works, but will stick with latest version otherwise anyway!

from khamake.

RobDangerous avatar RobDangerous commented on July 22, 2024

If you run into problems due to the changes which happened meanwhile try an older revision of one of the samples, for example Kha-Samples/BlocksFromHeaven@ad269f2

from khamake.

jeremyfa avatar jeremyfa commented on July 22, 2024

Unfortunately I did not succeed to make any project work with previous or newer version of Kha, including your sample above. Not being familiar with Unity is not helping.

For now I guess I will stick to latest Kha and only use other targets (that work perfectly fine), until Unity backend gets up to date with newer Kha!

Thanks for the help anyway!

from khamake.

RobDangerous avatar RobDangerous commented on July 22, 2024

One more hint - there's a Kha menu in Unity which you have to use once to initialize a new project.

from khamake.

jeremyfa avatar jeremyfa commented on July 22, 2024

from khamake.

jeremyfa avatar jeremyfa commented on July 22, 2024

Well, still no luck. On current kha (which gives black screen), I see the Kha menu and initializing it seems to add a component that loads the UnityBackend script, but then still black screen. Tried on your BlocksFromHeaven commit and got this error when opening Unity:

(...)/Backends/Unity/kha/audio1/UnitySoundChannel.hx(29,44): error CS0117: `UnityBackend' does not contain a definition for `loadSound'

(And Kha menu is not there)

I could continue tinkering and try to find out what is going on, but I don't really wish to debug this at the moment, especially on an older version of Kha. I'd rather wait until the target is "officially" working again to try one more time!

(That's ok, I was mostly trying to run an example just to see how it goes, but I don't need Unity backend at the moment. That may, however, be a requirement that may come later if I use Kha so I am definitely interested to know when it will be working again)

from khamake.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.