Incorrect Button Attribute Example in Docs

Issue #35 resolved
Deniz Ozkaynak created an issue

3rd example on this page leads to compiler error "ButtonAttribute does not contain a constructor that takes 1 arguements".

The below usage compiles and has the intended effect:

[Button(Name = "Toggle All Debugs")]

Comments (1)

  1. mSkull001

    Whoops good catch. Writing Name = "..." everywhere seems unnessessary, so we've added some new constructors to ButtonAttribute, so simplify things, and that means the documentation is also accurate, with the next update.

    Sorry for the inconvenience.

  2. Log in to comment