MCPcopy Create free account
hub / github.com/Var3D/var3dframe / getModel

Method getModel

core/src/core/java/var3d/net/center/VGame.java:1727–1735  ·  view source on GitHub ↗

获取Model

(String name)

Source from the content-addressed store, hash-verified

1725 * 获取Model
1726 */
1727 public Model getModel(String name) {
1728 if (assets.isLoaded(name, Model.class)) {
1729 return assets.get(name, Model.class);
1730 } else {
1731 assets.load(name, Model.class);
1732 assets.finishLoading();
1733 return assets.get(name, Model.class);
1734 }
1735 }
1736
1737 //临时存放用getUI创建actor;
1738 public Actor self;

Callers

nothing calls this directly

Calls 2

loadMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected