• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 1,232 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0048 秒)

311. 有没有浮雕滤镜? [ 83%]

...xueying 赞同来自: ohkei 目前只有以下的滤镜和混合模式 /**@private 模糊滤镜。*/ public static const BLUR:int = 0x10; /**@private 颜色滤镜。*/ public static const COLOR:int = 0x20; /**@private 发光滤镜。*/ public static const GLOW:int = 0x08; public static const NAMES:A...

来源: Laya_社区 发布时间: 20170303

312. replaceSlotSkinName对于spine换肤不成功 [ 83%]

...oblin例子,替换的图片全在atlas里// 程序入口 class GameMain{ private m_skeleton : Laya.Skeleton; private m_templet : Laya.Templet; constructor() { Laya.init(1334,750,Laya.WebGL); this.m_templet = new Laya.Templet(); this.m_templet.on(Laya.Event.COMPLETE, this, this.parseComplete); this...

来源: Laya_社区 发布时间: 20180126

313. 视频 · LayaAir3.3 · 引擎文档 · LAYABOX [ 83%]

...xtends Laya.Script { declare owner: Laya.Sprite3D; @property(Laya.Scene3D) private scene: Laya.Scene3D; private videoPlane: Laya.Sprite3D; private videoTexture = new Laya.VideoTexture(); onAwake(): void { //获取场景中要添加视频纹理的3D节点 this.videoPlane = this.scene.getChildByName("...

来源: Laya3.0_文档 发布时间: 20251010

314. Sprite用graphics绘制图形后,mouse_over触发scale显示有问题 [ 83%]

Sprite用graphics绘制图形后,mouse_over触发scale显示有问题 private _initView():void { if(this._objectInfo.templateInfo.type == "hole") { this._body = new Sprite(); this._body.graphics.drawCircle(0, 0, this._objectInfo.templateInfo.width, "#ff0000"); this._body.width = this._objectInfo....

来源: Laya_社区 发布时间: 20180308

315. 颜色滤镜 差值变化 [ 83%]

...   /**      * 颜色工具类      */ export class ColorTool { private _targetsValue: number = 16777215; private _targetsLastValue: number = null; private targets: Array<Laya.Sprite> = null; public static instance: ColorTool = null; private targetsFilter: Laya.ColorFilter = null; pr...

来源: Laya_社区 发布时间: 20180930

316. Laya.timer.frameLoop(1, this, this.aaa);对象移动会出现颤抖现象 [ 82%]

...出现颤抖现象 this.loadHp(); Laya.timer.frameLoop(1, this, this.aaa); private bb:number = 6; private playerHB:logic.UI.role.PlayerHealthBar; private loadHp():void { this.playerHB = new logic.UI.role.PlayerHealthBar(); this.playerHB.pivotX = this.playerHB.width / 2; this.playerHB.pivotY = this.p...

来源: Laya_社区 发布时间: 20180102

317. spine 播放错乱 [ 82%]

...乱 templet: Laya.SpineTemplet; skeleton: Laya.SpineSkeleton; index = 0; private startFun(): void { //创建动画模板 this.templet = new Laya.SpineTemplet(); this.templet.loadAni("spine/10101001.json"); this.templet.on(Laya.Event.COMPLETE, this, this.parseComplete); this.templet.on(Laya.Event.ERR...

来源: Laya_社区 发布时间: 20210813

318. 同步龙骨插槽动画方案 [ 82%]

...骨插槽动画方案 Laya Ver2.1.1   export class MSketon {      private mFactory: Laya.Templet;     public mArmature: Laya.Skeleton     private _handler: Laya.Handler;      constructor(url: string, handler: Laya.Handler, aniMode: number = 0) {         th...

来源: Laya_社区 发布时间: 20200618

319. 加载-单一类型资源加载 [ 82%]

..../../res/apes/monkey2.png"], Handler.create(this, this.onAssetLoaded2)); } private onAssetLoaded1(texture: Texture): void { // 使用texture } private onAssetLoaded2(): void { var pic1: Texture = Loader.getRes("../../res/apes/monkey0.png"); var pic2: Texture = Loader.getRes("../../res/apes/monkey1.p...

来源: Laya_示例 发布时间: 20251209

320. 没有人尝试使用3d物理引擎么 [ 82%]

...eMoveScript; import threeDimen.common.SpriteStat; public class LayaAir3D { private var box:MeshSprite3D; private var sphereBody:Object; private var world:Object; private var CANNON:Object; public function LayaAir3D() { //初始化引擎 Laya3D.init(0, 0, true); //适配模式 Laya.stage.scaleMode=St...

来源: Laya_社区 发布时间: 20170331