⚠ This page is served via a proxy. Original site: https://github.com
This service does not collect credentials or authentication data.
Skip to content

Remove unneeded/breaking code, update camera example#3

Open
javl wants to merge 1 commit intoDanielArnett:masterfrom
javl:master
Open

Remove unneeded/breaking code, update camera example#3
javl wants to merge 1 commit intoDanielArnett:masterfrom
javl:master

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