DeveloperConsole.GetProperty C# (CSharp) Метод

GetProperty() публичный Метод

public GetProperty ( GameObject gameObject, Component component, string propertyName ) : void
gameObject GameObject
component Component
propertyName string
Результат void
	void GetProperty(GameObject gameObject, Component component, string propertyName)
	{
		Type componentType = component.GetType();
		PropertyInfo pInfo = componentType.GetProperty(propertyName);
		
		if (pInfo != null)
		{
			PrintToConsole(pInfo.GetValue(component, null).ToString());
		}
	}