Skip to content

Commit

Permalink
Use skin name as object variable.
Browse files Browse the repository at this point in the history
  • Loading branch information
PhaserEditor2D committed Sep 26, 2023
1 parent 8f700bb commit 64257ef
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,14 @@ namespace phasereditor2d.scene.ui.sceneobjects {

const objES = obj.getEditorSupport();

objES.setLabel(dataAsset.getKey());
if (skinName && skinName !== "default") {

objES.setLabel(skinName);

} else {

objES.setLabel(dataAsset.getKey());
}

// select a skin
SpineComponent.skin.setValue(obj, skinName);
Expand Down

0 comments on commit 64257ef

Please sign in to comment.