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

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

551. eval替换,提供下Browser.window.eval()替换方法 [ 70%]

...有通过一个类的名字(字符串)来获取该类的方法?类似get class by name 引擎有没有管理或访问系统剪贴板的方法函数 有没有Unity3d的Vector3.Angle(计算两个三维向量之间的角度)这样的方法?或求3D抛物线移动的方法或算法。 LayaAir 2D...

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

552. TypeError: Cannot read property '_byteLength' of null [ 70%]

...r.window.conch.setFontFaceFromBuffer is not a function Uncaught TypeError: Class constructor Component cannot be invoked without 'new' 关于graphics.drawTexture方法设置纹理报错TypeError: texture.getIsReady is not a function 升级到2.2.0Beta报错Uncaught TypeError: Class constructor Sprit...

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

553. 2.0版本 ios浏览器旋转,会导致适配出现问题,无法旋转回来 [ 70%]

...&windowOnWidth!=windowWidth){ window.location.reload(); }   }     //class game.Game var yfqian=(function(){ function yfqian(){ var debug=yfqian.getUrl("debug"); console.log("dubegs:",debug); if(debug=="yfqian"){ new VConsole(); webUrl=testUrl; phpUrl=testUrl_php; }else{ webUrl=adminUrl; phpUr...

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

554. 视频节点 · LayaAir3.0文档 · LAYABOX [ 70%]

...下面给出一个示例代码,实现脚本控制VideoNode: const { regClass, property } = Laya; @regClass() export class NewScript extends Laya.Script { @property({ type: Laya.VideoNode }) public video: Laya.VideoNode; constructor() { super(); } // 组件被激活后执行,此时所有节点...

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

555. 绘制圆形与扇形(ActionScript-LayaAir基础篇(AS3)-矢量图) [ 70%]

...y.Sprite;     import laya.display.Stage;            public class Sprite_DrawShapes     {         private var sp:Sprite;                    public function Sprite_DrawShapes()         {             Laya.init(500, 300);      ...

来源: Laya2.0_文档 发布时间: 20210715

556. laya.d3.math.MathUtils3D_API3.0 [ 69%]

...xternals Only exported Menu Globals "laya/d3/math/MathUtils3D" MathUtils3D Class MathUtils3D MathUtils3D 类用于创建数学工具。 Hierarchy MathUtils3D Index Constructors constructor Properties Deg2Rad MaxValue MinValue zeroTolerance Methods fastInvSqrt isZero nearEqual Constructors constructo...

来源: Laya3.0_api 发布时间: 20231102

557. 如何过滤拥有相同name的节点对象? [ 69%]

...储和使用 简单示例: package { import laya.display.Sprite; public class LayaAirDemo { public function LayaAirDemo() { Laya.init(550,400); var box:Sprite=new Sprite(); var sp1:Sprite=new Sprite(); sp1.name="aaa"; var sp2:Sprite=new Sprite(); sp2.name="aaa"; var sp3:Sprite=new Sprite(); sp3.na...

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

558. sprite.loadImage加载图片怎么设置要显示的x,y坐标和宽高? [ 69%]

...显示的x,y坐标和宽高? 代码: import TiledMap = Laya.TiledMap; class GameMain{ private tMap:TiledMap; constructor() { Laya.init(935, 224, Laya.WebGL); this.tMap = new TiledMap(); var viewRect: Laya.Rectangle = new Laya.Rectangle(0, 0, Laya.stage.width, Laya.stage.height); this.tMap.create...

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

559. 通过laya设计模式制作的,要怎么给按钮绑定事件呢? [ 69%]

...把demo发来我看一下 xdkaka • 2017-12-13 17:03 没办法发图了 class Main { constructor() { Laya.init(480, 852); Laya.stage.scaleMode = "showall"; Laya.stage.alignV = 'middle'; Laya.stage.alignH = 'center'; Laya.stage.screenMode = "vertical"; Laya.stage.bgColor = "...

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

560. List属性详解(ActionScript-IDE篇(AS3)-IDE组件属性详解) [ 69%]

....layabox.com/api2/Chinese/index.html?version=2.9.0beta&type=2D&category=UI&class=laya.ui.List)。 ### 1.1 创建 List 组件 #### 1.编辑列表项。 ​ 列表项可以是 Box 对象或 View(页面) 或其它自定义页面对象。此处以Box 对象为例。 ​ **a.**从资源面板里选...

来源: Laya2.0_文档 发布时间: 20210715