Reply To: Syphon GUITexture in Unity3D

Home Forums Syphon Syphon Implementations – User Syphon GUITexture in Unity3D Reply To: Syphon GUITexture in Unity3D

#25680
Brian Chasalow
Participant

It totally works. I just tried it, it’s super easy.

1) GameObject/Create Other/GUITexture
2) add a syphon client texture script to that object (or create a new script that derives from SyphonClientTexture)
3) modify SyphonClientTexture’s ApplyTexture() method (or override it) so that instead of
renderer.sharedMaterial.mainTexture = clientObject.AttachedTexture;
renderer.sharedMaterial.mainTexture.wrapMode = TextureWrapMode.Repeat;

you do:

guiTexture.texture = clientObject.AttachedTexture;

boom, syphon client texture on a gui.