I’m testing needle features with a simple project, but got stuck when trying to use very simple shader graph, as you can see in the image I’m using it in a cube and also the ground, but (on the right side) the end result just renders both objects with the default material apparently (I’m guessing that the white is there because of the default material being applied).
My Unity version is 2022.3.4f1 (LTD), the shader itself is an unlit and I’m using the Build-in Render Pipeline.
Am I missing something?
Hi! Thanks for the answer!
What do you mean by “marked”? AssetLabels? Tags? Layers? How do i know if needle is exporting them? (I’m saying this because from what i know, it only re-exports when there are changes in the hierarchy).
Regarding the Samples, i downloaded the samples via package manager and then proceeded to start a local server from the sample scene that you mentioned, yet all meshes appear black :classyblobthink:
My Needle-Engine version is 3.7.5-pre. Regardless i think that these details should appear in the docs or in a video, it would be nice if there was a step by step video for setting up shader exports correctly.
Yes! I added the ExportShader asset label, close and open Unity again, it throws me a couple of errors but from the typescript code (apparently it does not get rid of previously serialized properties if i delete them after).
The sample scene looks like it works, but the color still appears black, no change on that. Hope this helps someone!
export class Player extends Behaviour{
@serializable()
anims? : Animator;
@serializable()
bullet? : AssetReference;
//Start function and everything else...
}
Then the errors where:
Missing Serialization for object reference! x2 (one for each property)
After that i did this:
export class Player extends Behaviour{
@serializable(Animator)
anims? : Animator;
@serializable(AssetReference)
bullet? : AssetReference;
//The rest of the code...
}
And it solved the reference issues. Now the thing is:
Lets say i don’t want the “anims” property to be serialized anymore, so i just get rid of the “@serializable(Animator)” declaration, but it still appears in the inspector.
Is there a way to hide it to avoid any confusion regarding the references?
I built a shader like in your example above and it doesnt reproduce here in 2022.3.4 - do you think you can send us the scene with the bugreporter? (Needle Engine / Report a bug)