This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using TMPro; | |
using TMPro.EditorUtilities; | |
using UnityEditor; | |
using UnityEngine; | |
namespace LukaszZmudziak | |
{ | |
[CustomEditor(typeof(TextMeshProUGUI), true), CanEditMultipleObjects] | |
public class FixedTMPColorsEditor : TMP_EditorPanelUI | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function create() { | |
var atlasKey = 'atlasKey'; | |
var regionKey = 'someRegionInsideAtlas'; | |
var data = this.game.cache.getSpine(atlasKey); | |
var textureLoader = new PhaserSpine.SpineTextureLoader(game); | |
var spineAtlas = new spine.Atlas(game.cache.getText(data.atlas), textureLoader); | |
var sprite = createSprite(game, getRegionByName(spineAtlas, regionKey)); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package om.mandir.gdx.utils.actors; | |
import com.badlogic.gdx.graphics.g2d.Batch; | |
import com.badlogic.gdx.math.Affine2; | |
import com.badlogic.gdx.math.Matrix4; | |
import com.badlogic.gdx.scenes.scene2d.Group; | |
/** | |
* Allows to render Group in perspective. | |
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* @author Lukasz Zmudziak, @lukz_dev on 2016-01-11. | |
*/ | |
public class SpineUtils { | |
public static Skin cloneSkin(Skeleton skeleton, Skin oldSkin, String newName) { | |
Skin newSkin = new Skin(newName); | |
Array<Attachment> slotAttachments = new Array<Attachment>(); | |
Array<String> attachmentNames = new Array<String>(); |