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

Remove unneeded/breaking code, update camera example #3

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

javl
Copy link

@javl javl commented Aug 23, 2019

Thank you for this example, it was just what I needed to use my IP camera as a texture.

I did have some trouble finding a cross-platform alternative to System.Drawing.dll, but found out this include is not even used by the script. So this pull request removes that line, together with the unused public Bitmap bitmap { get; set; }. This way, the script works both on Windows and Linux (and probably MacOS as well).

I also updated the webcam example link to a new, functional source. I did not update the other files generated by Unity, as those will get updated by the user's latest Unity version anyway.

Removes System.Drawing dependency as this is not being used but does
break the code from working on non-Windows systems.
Updates the camera example to a new, functional source.
Copy link

@dustinkerstein dustinkerstein left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can confirm these changes work for me on OSX.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants