Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Auto select first available receiver #34

Closed
benkuper opened this issue Apr 29, 2019 · 1 comment
Closed

Auto select first available receiver #34

benkuper opened this issue Apr 29, 2019 · 1 comment
Assignees
Labels

Comments

@benkuper
Copy link

benkuper commented Apr 29, 2019

Hey,
awesome plugin, as always with Keijiro :)
When I created Unity Spout Plugin before Klak was out (and better), the default behavior when texture name is empty in a Spout Receiver was to take the first in list.
It's very useful to be able to quickly see something / switching between senders, or not having to set it up when exporting for a system that will only have one shared texture, but we don't know from which software (I'm exporting an app for another artist and I don't know which software he will use for generating the texture).
Is it something that you would implement, either as a default behavior or a checkbox (or option in the dropdown "auto select / first available") ?

@keijiro
Copy link
Owner

keijiro commented Jul 1, 2021

You can connect to the first available sender by using a script like following:

var names = SpoutManager.GetSourceNames();
if (names.Length > 0) GetComponent<SpoutReceiver>().sourceName = names[0];

@keijiro keijiro closed this as completed Jul 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants