MCPcopy Create free account
hub / github.com/StereoKit/StereoKit / ToggleTool

Method ToggleTool

Examples/StereoKitTest/DebugToolWindow.cs:187–196  ·  view source on GitHub ↗
(T stepper, Func<T> makeT = null)

Source from the content-addressed store, hash-verified

185 }
186
187 static T ToggleTool<T>(T stepper, Func<T> makeT = null) where T : IStepper
188 {
189 if (stepper == null)
190 return makeT == null ? SK.AddStepper<T>() : SK.AddStepper(makeT());
191 else
192 {
193 SK.RemoveStepper(stepper);
194 return default(T);
195 }
196 }
197
198 void ToggleAvatar()
199 {

Callers

nothing calls this directly

Calls 2

AddStepperMethod · 0.80
RemoveStepperMethod · 0.80

Tested by

no test coverage detected