Monogame, Effect can't find parrameter.
Here is a Visual Studio Solution i want you to test out.
e.Parameters["alpha"]
is null i its been hours i can't find why10 Replies
$code
To post C# code type the following:
```cs
// code here
```
Get an example by typing
$codegif
in chat
For longer snippets, use: https://paste.mod.gg/its better if you show a piece of code where exatcly you have issue
It seems to be an error from more than code
Because, someone told me that my code was fine
Nobody will download a file, especially a zip file to help.
Please upload the code by using $paste
If your code is too long, you can post to https://paste.mod.gg/, save, and copy the link into chat for others to see your shared code!
what do you mean more than code? where are you getting those values
here is the Effect code (hlsl)
and in my monogame code,
e.Parameters["alpha"]
is null
where e
is an instance of the Effect scriptI dont rly know hlsl but maybe you have to mark "alpha" to be out variable or smth
well i followed a tutorial, and i can't figure out what i did wrong
oh wait, i'm so sorry
its just because i made an Effect object instead of a SpriteEffect
i'm gonna close this down
sorry waisting your time