Reply To: Projector and Unity

Home Forums Syphon Syphon Implementations – User Projector and Unity Reply To: Projector and Unity

#4599
Brian Chasalow
Participant

hey there- Brian Chasalow here, I’ve been working on the Unity implementation. i am 99% certain that you can, but you would have to modify the syphonclientbridge to get the texture ID of the projector’s material, as a projector is not a ‘standard renderer’ like most other objects.
you’d need to use the projector.material.mainTexture i think.

so, wherever in the syphonClientBridge it refers to mainTexture, switch it with the projector’s material instead of the renderer.material

to get the projector’s material and native texture id: (untested code, warning)
Projector proj = GetComponent<Projector>();
proj.material.mainTexture.GetNativeTextureID();

keep me updated with your progress! next week I can help you more but I’m out of town right now. good luck,
brian