初步加入描边文件

This commit is contained in:
caizhitao
2019-12-11 23:00:33 +08:00
parent 9a7e3858cc
commit 7757f8d8d1
7 changed files with 69 additions and 11 deletions

View File

@@ -0,0 +1,21 @@
const { ccclass, property } = cc._decorator;
@ccclass
export default class SpriteOutlineCtrl extends cc.Component {
private _sprite: cc.Sprite = null;
onLoad() {
this._sprite = this.getComponent(cc.Sprite);
if (this._sprite == null) {
throw new Error(`${this.name} can only bind on Sprite`);
}
}
start() {
// let material: cc.Material = this._sprite.getMaterial(0);
// material.setProperty("test", 0);
// this._sprite.setMaterial(0, material);
}
// update (dt) {}
}

View File

@@ -0,0 +1,9 @@
{
"ver": "1.0.5",
"uuid": "93154cca-114c-4db2-938b-f750f686fe9b",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
"loadPluginInEditor": false,
"subMetas": {}
}