File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -158,6 +158,21 @@ protected override void AppendNodeDescription(StringBuilder descBuilder)
158158 . Append ( "AverageAngularSpeed: " ) . AppendLine ( clip . averageAngularSpeed . ToString ( "F3" ) )
159159 . Append ( "AverageDuration: " ) . AppendLine ( clip . averageDuration . ToString ( "F3" ) )
160160 . Append ( "IsHumanMotion: " ) . AppendLine ( clip . isHumanMotion . ToString ( ) ) ;
161+
162+ // Event
163+ descBuilder . AppendLine ( LINE ) ;
164+ var events = clip . events ;
165+ descBuilder . AppendLine (
166+ events . Length == 0
167+ ? "No Event"
168+ : ( events . Length == 1 ? "1 Event:" : $ "{ events . Length . ToString ( ) } Events:")
169+ ) ;
170+ for ( int i = 0 ; i < events . Length ; i ++ )
171+ {
172+ var evt = events [ i ] ;
173+ var evtPosition = evt . time / clip . length * 100 ;
174+ descBuilder . AppendLine ( $ " #{ ( i + 1 ) . ToString ( ) } { evtPosition . ToString ( "F2" ) } % { evt . functionName } ") ;
175+ }
161176 }
162177 }
163178}
Original file line number Diff line number Diff line change @@ -168,7 +168,7 @@ protected override void AppendNodeDescription(StringBuilder descBuilder)
168168 descBuilder . AppendLine (
169169 inputCount == 0
170170 ? "No Input"
171- : ( inputCount == 1 ? "1 Input:" : $ "{ inputCount } Inputs:")
171+ : ( inputCount == 1 ? "1 Input:" : $ "{ inputCount . ToString ( ) } Inputs:")
172172 ) ;
173173 AppendInputPortDescription ( descBuilder ) ;
174174
@@ -178,7 +178,7 @@ protected override void AppendNodeDescription(StringBuilder descBuilder)
178178 descBuilder . AppendLine (
179179 playableOutputCount == 0
180180 ? "No Output"
181- : ( playableOutputCount == 1 ? "1 Output" : $ "{ playableOutputCount } Outputs")
181+ : ( playableOutputCount == 1 ? "1 Output" : $ "{ playableOutputCount . ToString ( ) } Outputs")
182182 ) ;
183183 }
184184
You can’t perform that action at this time.
0 commit comments