Как мне распечатать все возможные значения свойства класса в Unity?C#

Место общения программистов C#
Гость
Как мне распечатать все возможные значения свойства класса в Unity?

Сообщение Гость »


I just start to learn unity and currently following the tutorial. I'm curious when I following the last section of the tutorial, I got value in one of the code, so I tried to logging it to know where's the came from.

I've tried to use this code to logging it

Код: Выделить всё

Debug.Log("The Touch => "); Debug.Log(theTouch); 
but the value in

Код: Выделить всё

adb logcat
only show me (I'm using logkitty)


Изображение


so, how do i properly get all value inside / class? something like

Код: Выделить всё

console.log(JSON.stringify(theObject))
in

Код: Выделить всё

Javascript
.


Источник: https://stackoverflow.com/questions/781 ... y-in-unity

Вернуться в «C#»