0
Completed

how do i trigger event via code?

Khela Kore 10 months ago updated by jackielo 2 months ago 2

Hi,

I found no examplel on how to activation of the shader effect by using c# code. Can you give me a simple example of how to use the shaders using code?

For example, say I got a magic scroll. Now my normal sword is stronger and I want to show the sword is glowing now. How can I do this via programming using your tool? Thanks!

Answer

Answer
Under review

Sorry for the inconvience,

I think the easiest way to do it is that you have 2 sword under same parent, and use GameObject.SetActive() to hide the normal sword and activate the one with Shader Weaver effects.

Also, are you able to make a discord server to support better? You know discord is much easier to manage and better than this support forum you have

Answer
Under review

Sorry for the inconvience,

I think the easiest way to do it is that you have 2 sword under same parent, and use GameObject.SetActive() to hide the normal sword and activate the one with Shader Weaver effects.