@@ -1087,23 +1087,23 @@ private void InitBuiltInCommands()
10871087 return ;
10881088 }
10891089
1090- LogSeperator ( obj . name + ( obj . activeInHierarchy ? " ( enabled) " : " ( disabled)" ) ) ;
1091- if ( obj . TryGetComponent < RectTransform > ( out RectTransform rect ) )
1090+ LogSeperator ( $ " { obj . name } ( { ( obj . activeInHierarchy ? "enabled" : " disabled" ) } )" ) ;
1091+ if ( obj . TryGetComponent ( out RectTransform rect ) )
10921092 {
10931093 Log ( "RectTransform:" ) ;
1094- Log ( $ " Anchored position: { rect . anchoredPosition } ." ) ;
1095- Log ( $ " Size: { rect . sizeDelta } ." ) ;
1096- Log ( $ " Pivot: { rect . pivot } ." ) ;
1094+ LogVariable ( " Anchored position" , rect . anchoredPosition ) ;
1095+ LogVariable ( " Size" , rect . sizeDelta ) ;
1096+ LogVariable ( " Pivot" , rect . pivot ) ;
10971097 }
10981098 else
10991099 {
11001100 Log ( "Transform:" ) ;
1101- Log ( $ " Position: { obj . transform . position } ." ) ;
1102- Log ( $ " Rotation: { obj . transform . rotation } ." ) ;
1103- Log ( $ " Scale: { obj . transform . localScale } ." ) ;
1101+ LogVariable ( " Position" , obj . transform . position ) ;
1102+ LogVariable ( " Rotation" , obj . transform . rotation ) ;
1103+ LogVariable ( " Scale" , obj . transform . localScale ) ;
11041104 }
1105- Log ( $ "Tag: { obj . tag } ." ) ;
1106- Log ( $ "Physics layer: { LayerMask . LayerToName ( obj . layer ) } ." ) ;
1105+ LogVariable ( "Tag" , obj . tag ) ;
1106+ LogVariable ( "Physics layer" , LayerMask . LayerToName ( obj . layer ) ) ;
11071107
11081108 Component [ ] components = obj . GetComponents ( typeof ( Component ) ) ;
11091109 if ( components . Length > 1 )
@@ -1113,7 +1113,7 @@ private void InitBuiltInCommands()
11131113 {
11141114 if ( components [ i ] is MonoBehaviour mono )
11151115 {
1116- Log ( $ " { i } : { components [ i ] . GetType ( ) . Name } ({ ( mono . enabled ? "enabled" : "disabled" ) } ).") ;
1116+ Log ( $ " { i } : { mono . GetType ( ) . Name } ({ ( mono . enabled ? "enabled" : "disabled" ) } ).") ;
11171117 }
11181118 else
11191119 {
0 commit comments