Skip to content

Commit

Permalink
Fixing the SpawnFromScene example.
Browse files Browse the repository at this point in the history
Small change to make this work again.
  • Loading branch information
Lykdraft authored Mar 24, 2021
1 parent 42e40ce commit 196e66c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spawn_from_scene/Sources/arm/MyTrait.hx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class MyTrait extends iron.Trait {

function init() {
Data.getSceneRaw("Scene.001", function (raw:TSceneFormat) {
var obj = Scene.getObj(raw, "Suzanne");
var obj = Scene.getRawObjectByName(raw, "Suzanne");
Scene.active.createObject(obj, raw, null, null, function(o:Object) {
trace("Suzanne spawned!");
});
Expand Down

0 comments on commit 196e66c

Please sign in to comment.