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

大约有 532 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0050 秒)

471. 鼠标交互-拖动 [ 40%]

...res/apes/monkey2.png"; private ape: Sprite; private dragRegion: Rectangle; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = "sh...

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

472. Laya ts版,使用jasmine进行单元测试 [ 40%]

...Library/ToolService.ts, 内容为module Library{ export class ToolService{ constructor(){ } public static sum(a:number, b:number):number { return a + b; } } }   一个是 src/Library/UserService.ts, 内容为module Library{ export class UserService{ constructor(){ } public multiple(a:number, b:numb...

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

473. 扇形遮罩画不全画了一个很奇怪的形状但是矩形的就没问题。显示效果如下:版本号1.7.10 [ 40%]

...              im.skin=p;                 im.setColor(Const_colorData.ColorData[0]);                 im.setName("grayIcon");                 view.icon_3.addChild(im);                  var img:Image = view.icon_3.getChildByName("grayIcon") as ...

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

474. laya.display.AnimationPlayerBase [ 40%]

...| Frames No Frames AnimationPlayerBaseProperties | Methods | Events | Constants Packagelaya.displayClasspublic class AnimationPlayerBaseInheritanceAnimationPlayerBase Sprite Node EventDispatcher ObjectSubclasses Animation, FrameAnimation 动画播放基类,提供了基础的动画播放控制...

来源: laya_api 发布时间: 20170929

475. 深入理解LayaAir引擎架构和实现原理(一)跨平台引擎源码编译 [ 40%]

...code]var fs = require('fs'); // 引入fs模块 var path = require('path'); const child_process = require("child_process"); function deleteall(path) { // lear var files = []; if(fs.existsSync(path)) { files = fs.readdirSync(path); files.forEach(function(file, index) { var curPath = path + "/" + file;...

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

476. 纹理压缩 · LayaAir3.0文档 · LAYABOX [ 40%]

...路径即可。以给Image组件添加皮肤为例,示例代码如下: const { regClass, property } = Laya; @regClass() export class Main extends Laya.Script { onAwake(): void { let img = new Laya.Image; Laya.stage.addChild(img); img.pos(500,100); img.skin = "resources/layabox.png"; //纹理压...

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

477. Animation 的createFrames 使用已经加载的图集缓存动画失败 [ 40%]

...便快速的查找问题。     public class Animation_Altas { private const AniConfPath:String = "res/fighter/fighter.json"; private var fly:Animation; public function Animation_Altas() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya....

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

478. 精灵 · LayaAir3.0文档 · LAYABOX [ 40%]

...在Scene2D下添加一个自定义组件脚本,并添加如下代码: const { regClass, property } = Laya; @regClass() export class NewScript extends Laya.Script { //declare owner : Laya.Sprite3D; @property({ type: Laya.Sprite }) public sprite1: Laya.Sprite; @property({ type: Laya.Sprite }) publ...

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

479. TiledMap地图 · LayaAir3.0文档 · LAYABOX [ 39%]

...础的参数说明如图3-2所示。 (图3-2) 3.2.2 创建地图示例 const { regClass, property } = Laya; @regClass() export class Main extends Laya.Script { private tMap:Laya.TiledMap; onEnable() { //创建地图对象 this.tMap = new Laya.TiledMap(); //创建Rectangle实例,视口区域 va...

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

480. laya.display.AnimationBase [ 39%]

...Index | Frames No Frames AnimationBaseProperties | Methods | Events | Constants Packagelaya.displayClasspublic class AnimationBaseInheritanceAnimationBase Sprite Node EventDispatcher ObjectSubclasses Animation, FrameAnimation 动画基类,提供了基础的动画播放控制方法和帧标...

来源: Laya2.0_api 发布时间: 20190513