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

Method Initialize

Examples/StereoKitTest/Demos/DemoText.cs:24–34  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

22 /// :End:
23
24 public void Initialize() {
25 /// :CodeSample: Text.MakeStyle Font.FromFile Text.Add
26 /// In initialization, we can create the style from a font, a size,
27 /// and a base color. Overloads for MakeStyle can allow you to
28 /// override the default font shader, or provide a specific Material.
29 style = Text.MakeStyle(
30 Font.FromFile("aileron_font.ttf"),
31 2 * U.cm,
32 Color.HSV(0.55f, 0.62f, 0.93f));
33 /// :End:
34 }
35
36 public void Shutdown() { }
37

Callers

nothing calls this directly

Calls 3

MakeStyleMethod · 0.80
HSVMethod · 0.80
FromFileMethod · 0.45

Tested by

no test coverage detected