Skip to content

Commit

Permalink
Merge pull request #26 from Lykdraft/patch-1
Browse files Browse the repository at this point in the history
Fixing the SpawnFromScene example.
  • Loading branch information
luboslenco authored Mar 25, 2021
2 parents 42e40ce + 196e66c commit 1718809
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 1718809

Please sign in to comment.