Skip to content

Instantly share code, notes, and snippets.

@quizcanners
Last active April 15, 2021 08:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save quizcanners/2003782ef64185f9bfbb1074ef0e2710 to your computer and use it in GitHub Desktop.
Save quizcanners/2003782ef64185f9bfbb1074ef0e2710 to your computer and use it in GitHub Desktop.
public Inspect()
{
if ("Object's Transparency:".edit(ref transparency))
RecalculateShaderParameters();
if (transparency != 0.5f && icon.Refresh.Click("Will load default value",25).nl())
transparency = 0.5f;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment