Skip to main content
Kokodoko's user avatar
Kokodoko's user avatar
Kokodoko's user avatar
Kokodoko
Creative Technologist
  • Member for 12 years, 7 months
  • Last seen this week
comment
Error ''Cannot read properties of undefined (reading 'canvas')'' while creating a pixi.js app
Your own script probably runs before pixi is loaded. Can you try <script defer>your code </script>
Loading…
comment
Uploading a video(file) through file explorer in Unity WebGl
I would suggest to do this on a separate html page and not from within the Unity game. Then you can just use a normal html file upload form, you don’t need any plugin. developer.mozilla.org/en-US/docs/Web/HTML/Element/input/file
comment
How to return JSON response result to NodeJS application
It seems that express-handlebars creates HTML on the server and then sends the whole html page back to the browser. So you should be able to submit the form normally instead of using fetch. If you do want to use fetch you'll have to handle the result after fetch returns something. (by using then().)
comment
Play failed: DOMException: Failed to load because no supported source was found
Can you add the whole code in your question, not as an image? Is there a reason why you use fetch and arrayBuffer to load a video, instead of directly setting the src of a <video> element?
awarded
comment
Is there any way in Css of getting a true vertical 100%?
I think you need to post a code example where it shows why height:100% doesn't work for you.
comment
how can i make my sklearn prediction model better?
You could include the siblings/spouses from the dataset in your training
awarded
Loading…
comment
React Hooks: useEffect() is called twice even if an empty array is used as an argument
@DrewReese I've read this whole page several times, but it's still not clear to me what the bug in my code could possibly be. Do I have to solve it? Is this expected behaviour in React? It seems even React experts don't have a definitive answer.
Loading…
awarded
comment
Use javascript animate() to animate css variables/properties
Some articles explain @property but that doesn't seem to be widely supported? developer.mozilla.org/en-US/docs/Web/CSS/@property
Loading…
comment
Use javascript animate() to animate css variables/properties
You are correct :) I did not know that :) But I was able to hack it by setting the animation as a string: foo.style.animation = "my-animation 2s forwards" and then keeping the actual keyframe animation in the stylesheet: jsfiddle.net/3roed9qv
comment
Use javascript animate() to animate css variables/properties
Also I believe that CSS variables are only evaluated once at the start of the page build. Changing the variable later has no effect (as far I as I understand).
comment
I put my unity build into my project folder; how do I clean it
Maybe create another build in a dedicated folder, and then you can check what new files were created?
comment
Developing Pong's Computer Paddle "AI"
Since you use the ball velocity to calculate the paddle position, it doesn't matter if you add random numbers to the velocity... If you want the AI to be able to lose, you should add some random behaviour to the position, for example a delay.
1
2 3 4 5
185