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

Method ToggleAvatar

Examples/StereoKitTest/DebugToolWindow.cs:198–207  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

196 }
197
198 void ToggleAvatar()
199 {
200 if (avatar == null)
201 Platform.FilePicker(PickerMode.Open, (filename) => avatar = SK.AddStepper(new ReadyPlayerMeAvatar(Model.FromFile(filename))), null, Assets.ModelFormats);
202 else
203 {
204 SK.RemoveStepper(avatar);
205 avatar = null;
206 }
207 }
208
209 void TakeScreenshots()
210 {

Callers

nothing calls this directly

Calls 4

FilePickerMethod · 0.80
AddStepperMethod · 0.80
RemoveStepperMethod · 0.80
FromFileMethod · 0.45

Tested by

no test coverage detected