Sat.Jun 22, 2024

article thumbnail

Everwayne

Indie DB

Welcome to the Everwayne community We aim to earn the trust of future players, so this fantasy world with unique characters is hand-drawn.

Fantasy 92
article thumbnail

Stacking Shaders: Problem with 'new EffectAsset' in code

Cocos

I am trying to create a 'CustomMaterial' to stack 2 shader effects. When I do effectAsset: new EffectAsset I get an error, because of the type mismatch. I don’t know how to solve it… Complete line of the error: Can someone look at this? Maybe someone has a better way/idea to solve the problem of only having one CCEffect on one Node/Sprite/etc…? Thanks, tL.

Shaders 52
Insiders

Sign Up for our Newsletter

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Trending Sources

article thumbnail

Stacking Shaders: Problem with 'new EffectAsset' in code

Cocos

Solved this myself… Now it’s working… Kinda… New error here with getting the path: My structure: code with.effect extension: Code without.effect extension: error 1 (with the extension): error 2 (without the extension): error 3 (with full path copied from menu, without a screenshot of the modified code.): Maybe I am too tired now, maybe I am just done for the day now.

Code 52
article thumbnail

Stacking Shaders: Problem with 'new EffectAsset' in code

Cocos

Well, now I see it… Let me test this by making a “resources” folder in my hierarchy… EDIT: That worked. All was fine, until… I wanted to add a texture via code.Got a new error, but looks the same as before. I solved the same error before. However, somehow now I can’t fix it. with or without.

Shaders 52
Join the IGDA Community
article thumbnail

Stacking Shaders: Problem with 'new EffectAsset' in code

Cocos

Solved this myself… Now it’s working… Kinda… New error here with getting the path: My structure: code with.effect extension: Code without.effect extension: error 1 (with the extension): error 2 (without the extension): error 3 (with full path copied from menu, without a screenshot of the modified code.): Maybe I am too tired now, maybe I am just done for the day now.

Code 52
article thumbnail

Stacking Shaders: Problem with 'new EffectAsset' in code

Cocos

I am trying to create a 'CustomMaterial' to stack 2 shader effects. When I do effectAsset: new EffectAsset I get an error, because of the type mismatch. I don’t know how to solve it… Complete line of the error: Can someone look at this? Maybe someone has a better way/idea to solve the problem of only having one CCEffect on one Node/Sprite/etc…?

Shaders 52

More Trending

article thumbnail

UIComponent Label String value or text not showing up in Ver 3.8.3(2024.05.11)

Cocos

I have created a node. I have added a Label I updated a string value but string value is not showing. Please find the attached screenshot for your reference.

52
article thumbnail

UIComponent Label String value or text not showing up in Ver 3.8.3(2024.05.11)

Cocos

I have created a node. I have added a Label I updated a string value but string value is not showing. Please find the attached screenshot for your reference.

52
article thumbnail

Collider2D event is not invoking in Ver 3.8.3

Cocos

I am trying to check that the following event is occered or not on the UI. But the following event is not invoking. I have added Collider2D component to two different game objects. But the following code is not invoked. The video tutorial has the same code and i verified the Cocos Documentation Properties and methods but there is no deviation on the syntax, i am not able to understand what could be the issue.

Console 40
article thumbnail

Migration from version 3.8.2 to 3.8.3 (error)

Cocos

Hello, command Cocos Creator. I don’t know where exactly to write with errors. After switching from version 3.8.2 to 3.8.3, errors appeared. (project.log attached) project.log.zip (2.5 KB) version 3.8.3 Error: Invalid URL (when trying to open a.ts file - double click) Cannot read property ‘updateSize’ of undefinedTypeError: Cannot read property ‘updateSize’ of undefined version 3.8.2 When entering your login and password in version 3.8.2 (before installing version 3.8.

Writing 40
Join the IGDA Community
article thumbnail

Migration from version 3.8.2 to 3.8.3 (error)

Cocos

Hello, command Cocos Creator. I don’t know where exactly to write with errors. After switching from version 3.8.2 to 3.8.3, errors appeared. (project.log attached) project.log.zip (2.5 KB) version 3.8.3 Error: Invalid URL (when trying to open a.ts file - double click) Cannot read property ‘updateSize’ of undefinedTypeError: Cannot read property ‘updateSize’ of undefined version 3.8.2 When entering your login and password in version 3.8.2 (before installing version 3.8.

Writing 40
article thumbnail

Collider2D event is not invoking in Ver 3.8.3

Cocos

I am trying to check that the following event is occered or not on the UI. But the following event is not invoking. I have added Collider2D component to two different game objects. But the following code is not invoked. The video tutorial has the same code and i verified the Cocos Documentation Properties and methods but there is no deviation on the syntax, i am not able to understand what could be the issue. let collider = this.bird.getComponent(Collider2D); if (collider) { console.log(‘Collide

Console 40
article thumbnail

Cambiar escenas con botones

Cocos

Hola, quería saber como programar los botones para que cambie la escena

40
article thumbnail

Cambiar escenas con botones

Cocos

Hola, quería saber como programar los botones para que cambie la escena

40
Join the IGDA Community
article thumbnail

Cambiar escenas con botones

Cocos

Hola, quería saber como programar los botones para que cambie la escena

40
article thumbnail

Poner música en menú principal

Cocos

hola, ¿como puedo poner música y sonidos en escenas?

40
article thumbnail

Poner música en menú principal

Cocos

hola, ¿como puedo poner música y sonidos en escenas?

40