Comments (10)
OK, moving it up on my todo list.
from khamake.
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.
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.
You can give Kode/Kha@0eb1ae1#diff-e2aff9328f2f36d0ec21b3cccb596a03 a go but it's pretty old.
from khamake.
Thanks! I will give it a try just to see if unity export works, but will stick with latest version otherwise anyway!
from khamake.
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.
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.
One more hint - there's a Kha menu in Unity which you have to use once to initialize a new project.
from khamake.
from khamake.
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)
- Prevent duplicate entries in the generated hxml files HOT 2
- Chokidar ignore assets and shaders when the path contains a "." HOT 7
- [addProject] assets exported to wrong path
- [addProject] nested addProject calls don't seem to work
- Resource busy or locked HOT 5
- Source code not recompiled on change HOT 11
- project.addAssets with absolute path fails
- --haxe3 doesn't work with --watch HOT 3
- Automate kha_version define HOT 5
- Texture atlas generation HOT 9
- Issues Building With Latest Khamake+Koremake HOT 13
- addAssets('../Assets/**') not including files HOT 3
- A library's addDefine gets ignored HOT 1
- Chokidar v3 request
- Shader compiler error writes to log.info() instead of log.error()?
- A library's full path is used for addDefine
- khafile.js -> await project.addProject("xyz") breaks code-completion (haxe doesn't build cache anymore) HOT 5
- CLI flag grep compat
- Should return non-success error code on compilation failure
- Store/query mapping from original asset filenames to renamed/converted asset filenames
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from khamake.