mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-04 14:24:53 +08:00
Added getter for skinName.
This commit is contained in:
parent
5874b5d276
commit
7fde649d8c
@ -209,6 +209,11 @@ public class Skeleton {
|
||||
this.skin = skin;
|
||||
}
|
||||
|
||||
/** @return May be null. */
|
||||
public function get skinName () : String {
|
||||
return _skin == null ? null : _skin._name;
|
||||
}
|
||||
|
||||
/** Sets the skin used to look up attachments not found in the {@link SkeletonData#getDefaultSkin() default skin}. Attachments
|
||||
* from the new skin are attached if the corresponding attachment from the old skin was attached. If there was no old skin,
|
||||
* each slot's setup mode attachment is attached from the new skin.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user