大约有 1,764 项符合查询结果, 库内数据总量为 31,624 项。 (搜索耗时: 0.0162 秒)
Laya_社区(623) Laya3.0_api(482) Laya2.0_文档(180) Laya_示例(146) Laya2.0_示例(116) Laya3.0_文档(86) Laya2.0_api(67) laya_api(64)
...erited Externals Only exported Menu Globals "laya/d3/math/Vector3" Vector3 Class Vector3 Vector3 类用于创建三维向量。 Hierarchy Vector3 Implements IClone Index Constructors constructor Properties x y z ForwardLH ForwardRH NegativeUnitX ONE UnitX UnitY UnitZ Up ZERO Methods clone cloneTo cr...
来源: Laya3.0_api 发布时间: 20231102
...打开链接查看:[https://layaair.ldc.layabox.com/api/?category=Bone&class=laya.ani.bone.Skeleton](https://layaair2.ldc2.layabox.com/api2/Chinese/index.html?version=2.9.0beta&type=2D&category=Animation&class=laya.ani.bone.Skeleton) 创建 DragonBonesDemo.ts,代码编写如下: ```typescript ...
来源: Laya2.0_文档 发布时间: 20210715
...; ani.scale(80/bounds.width ,80/bounds.height) this.addChild(ani) } } Laya.class(Item1, "Item1", Box); var List = Laya.List; function setup(effList) { var list = new List(); list.itemRender = Item1; list.repeatX = 3; list.repeatY = 4; list.x = (Laya.stage.width - WID * list.repeatY) / 2 - 100; list....
来源: Laya_社区 发布时间: 20170627
...(this.img); this.setImg = function(src) { this.img.skin = src; } } Laya.class(Item, "Item", Box); // 主要逻辑代码 var Stage = Laya.Stage; var List = Laya.List; var Handler = Laya.Handler; var WebGL = Laya.WebGL; (function() { // 不支持WebGL时自动切换至Canvas L...
来源: Laya_社区 发布时间: 20180724
...02-03 0 1 分享 微博 QZONE 微信 taofljf 赞同来自: // 程序入口 class GameMain{ private tMap:Laya.TiledMap; constructor() { //创建TiledMap实例 this.tMap = new Laya.TiledMap(); //创建Rectangle实例,视口区域 var viewRect:Laya.Rectangle = new Laya.Rectangle(); //创建TiledMap...
来源: Laya_社区 发布时间: 20180203
...码demopackage { import laya.webgl.WebGL; import laya.display.Text; public class LayaSample { public function LayaSample() { //初始化引擎 Laya.init(480, 640,WebGL); Laya.stage.bgColor = "#FFFF33"; var txt:Text = new Text(); //给文本的text属性赋值 txt.text = "gggggqqqqqqqyyyyyyyvvvv"; tx...
来源: Laya_社区 发布时间: 20190606
...rted Menu Globals "laya/d3/RenderObjs/NativeOBJ/NativeBounds" NativeBounds Class NativeBounds Hierarchy NativeBounds Implements IClone Index Constructors constructor Properties MemoryBlock_size Accessors max min Methods _getBoundBox calculateBoundsintersection clone cloneTo getCenter getExtent getMa...
来源: Laya3.0_api 发布时间: 20231115
...from '../ui/layaMaxUI' import GameScene from './GameScene'; export default class VictoryScene extends VictorySceneUI { constructor() { super(); } onAwake(){ let btnOnce=this.getChildByName("btnOnce"); btnOnce.on(Laya.Event.CLICK,this,this.onClick); } onClick(e){ this.removeSelf(); let gameScene...
来源: Laya_社区 发布时间: 20190903
...deo播放视频 * @ author:xs * @ data: 2024-03-05 16:20 */ export default class VideoDom { htmlvideo:Laya.HtmlVideo; constructor() { Laya.stage.on(Laya.Event.CLICK,this,this.onClick); } onClick(){ this.initVideo(); } initVideo() { this.htmlvideo = new Laya.HtmlVideo(); this.htmlvideo.setSource("htt...
来源: Laya_社区 发布时间: 20240305
...址](https://layaair.ldc.layabox.com/api2/Chinese/index.html?category=Core&class=laya.d3.physics.Rigidbody3D); #### (1) 使用代码创建和添加刚体 在有需要的情况下,我们可以通过代码创建的方式给对象加上刚体。 下面的示例代码中我们简单的创建了个...
来源: Laya2.0_文档 发布时间: 20210715