stillwwater / command_terminal

Unity Command Terminal: In-Game Console
MIT License
445 stars 60 forks source link

[Question] Running what kind of methods? #1

Closed LeLocTai closed 6 years ago

LeLocTai commented 6 years ago

In README this is defined as "in-game Console for calling C# methods". I haven't try this, but from the gif as well as the examples, it seem what you mean is calling custom commands? IMO "calling C# methods" would suggest you can run arbitrary methods, something like: Debug.Log(GetComponent<Camera>().fieldOfView)

stillwwater commented 6 years ago

You can call methods marked with the [RegisterCommand] attribute. This is not a run-time C# evaluator.

I can see that wording could imply that this can run arbitrary C# code. What would you suggest to make this clearer in the README?

LeLocTai commented 6 years ago

I think the simplest way is to just stop the sentence at "in-game Console". The rest of the file already imply its capabilities.

stillwwater commented 6 years ago

I totally agree the introductory sentence is redundant in context with the rest of the file. I've shortened it in 821c220.

Thanks for the suggestion.