大约有 1,720 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0057 秒)
Laya_社区(1002) Laya3.0_api(243) Laya2.0_示例(91) Laya_示例(90) Laya2.0_文档(89) Laya2.0_api(82) laya_api(75) Laya3.0_文档(48)
...置; */ export default class GameConfig{ static width:number=640; static height:number=1136; static scaleMode:string="fixedwidth"; static screenMode:string="none"; static alignV:string="top"; static alignH:string="left"; static startScene:any="LoginScene.scene"; static sceneRoot:string=""; static de...
来源: Laya_社区 发布时间: 20190402
...帧时其使用的graphics值与倒数第二帧graphics使用的x/y/width/height一致,故猜测最后一帧使用了和倒数第二帧一样的外观导致动画停止后外观看起来还是倒数第二帧的外观。 对于Spine动画播放的源码我没有全部看一遍故不能找到故...
来源: Laya_社区 发布时间: 20200109
...WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = "showall"; Laya.stage.bgColor = "#232628"; showApe(); })(); function distort (imageData) { console.log(imageData)...
来源: Laya_社区 发布时间: 20171130
...png",0,0,0,0,Laya.Handler.create(this,function() { console.log(sp.width,sp.height); })); Laya.stage.addChild(sp); loadImage在加载完成的回调函数触发之后才可以正确获取宽高。 直接调用size设置: Laya.loader.load("res/apes/monkey2.png",Laya.Handler.create(this,function() { ...
来源: Laya3.0_文档 发布时间: 20251010
...同皮肤 public function LayaAirDemo() { Laya.init(Browser.width,Browser.height,WebGL);//初始化LayaAir引擎 Stat.show();//舞台左上角显示帧频信息 Laya.stage.bgColor='#EEFFCC';//设置舞台背景色 Laya.stage.alignH='center';//水平居中对齐 Laya.stage.alignV='middle';//垂直居...
来源: Laya_社区 发布时间: 20170324
...= new Laya.Texture2D(videoTexture.video.videoWidth,videoTexture.video.videoHeight); var texture:Laya.Texture = new Laya.Texture(texture2D); var image:Laya.Image = new Laya.Image(); image.texture = texture; image.width = videoTexture.video.videoWidth; image.height = videoTexture.video.videoHeight; im...
来源: Laya_社区 发布时间: 20240305
...eateElement('div')"); __JS__("div.style.width='400px'"); __JS__("div.style.height='400px'"); // 相对父级定位,并在最上方显示 __JS__("div.style.position='absolute'"); __JS__("div.style.zIndex=100"); // 获取laya的div,让饼图的div位于laya的上放 __JS__('var divLaya=document.ge...
来源: Laya_社区 发布时间: 20170109
...onents/Inspector-CapsuleCollider.png) 1. Is Trigger 2. Center 3. Radius 4. Height 5. Direction - Mesh Collider  1. Is Trigger 2. Mesh - Rigidbody  1. Mass 2. Is Kinematic 3. Use Gravity...
来源: Laya2.0_文档 发布时间: 20200822
...一个类即可:class Laya { public static function init(width:Number, height:Number, ... plugins):* { return null } } 这有点类似使用laya 原生js开发中的.d.ts文件,只是我们应该让这个laya类定义库尽量的小,满足编译的要求即可。这样能够极大提高编译...
来源: Laya_社区 发布时间: 20170321
... (图1-8) 我们可以通过偏移localOffset、半径radius、高度height、方向orientation,来设置圆柱体碰撞形状的位置、圆柱粗细、圆柱高矮、胶囊朝向,如图1-9所示。 (图1-9) 1.1.5 圆锥体碰撞形状 圆锥体碰撞形状用于表示一个锥体物体...
来源: Laya3.0_文档 发布时间: 20251010