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

大约有 2,159 项符合查询结果, 库内数据总量为 31,671 项。 (搜索耗时: 0.0085 秒)

941. Laya.class问题 [ 69%]

... 提交 1 个回复 cuixueying 赞同来自: class () 方法 public static function class(functionRef:Function, fullQulifiedName:String, superClass:Function, miniName:String):void 在JS中,通过Laya.class来定义类,同时可以指定其继承关系。 参数 functionRef:Function — 类的函...

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

942. int/Number/uint之前的强转需要注意哪些问题? [ 69%]

...  原生例子:  var num:int = 2340923944589; transfrom(num); public function transfrom(value:uint):void { trace(value); } 兼容H5写法: var num:int = 2340923944589; transfrom(num); public function transfrom(value:uint):void { trace(uint(value)); } (3)、除法运算取整描述: 和Nu...

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

943. 物理系统之FixedConstraint(ActionScript-3D基础(AS3)-LayaAir3D之物理系统) [ 69%]

...gidBody2); ``` - 3.设置约束的breakForce ```typescript override public function onStart() { this.fixedConstraint = this.owner.getComponent(FixedConstraint); //设置打破约束的力的阈值 this.fixedConstraint.breakForce = 1000; } override public function onUpdate() { if(this.fixedConstraint...

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

944. 输入设备-摇一摇 [ 69%]

...nt = 484; private var console:Text; private var shakeCount:int = 0; public function InputDevice_Shake() { Laya.init(picW, Browser.height * picW / Browser.width); Laya.stage.scaleMode = Stage.SCALE_SHOWALL; showShakePic(); showConsoleText(); startShake(); } private function showShakePic():void { var ...

来源: Laya2.0_示例 发布时间: 20260106

945. 动画混合问题,Avatar动画混合报错. [ 69%]

...te (file:///F:/Program/PF_LAYA2.1/game/bin/libs/laya.d3.js:22941:22)   at Function.Animator._update (file:///F:/Program/PF_LAYA2.1/game/bin/libs/laya.d3.js:23368:47)   at Scene3D.__proto._update (file:///F:/Program/PF_LAYA2.1/game/bin/libs/laya.d3.js:32831:12)   at Stage.__proto.render (file:///F...

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

946. laya.utils.Pool_API3.0 [ 69%]

...。 Static getItemByCreateFun getItemByCreateFun(sign: string, createFun: Function, caller?: any): any Defined in laya/utils/Pool.ts:99 根据传入的对象类型标识字符,获取对象池中此类型标识的一个对象实例。 当对象池中无此类型标识的对象时,则使用传入...

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

947. 我自己绘制的矩形如何以自身中心点旋转不能实现啊 [ 69%]

...ya.utils.Browser; import laya.webgl.WebGL; public class HelloLaya { public function HelloLaya() { Laya.init(Browser.width, Browser.height,WebGL); Laya.stage.bgColor="#eeffcc"; var sp:Sprite=new Sprite(); sp.graphics.drawRect(0,0,200,300,"#000fff"); Laya.stage.addChild(sp); sp.size(200,300); sp.pivot...

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

948. 如何才能生成scene配套的代码 [ 69%]

... { public var scoreLbl:Label; public var tipLbll:Label; override protected function createChildren():void { super.createChildren(); loadScene("test/TestScene"); } } } 2018-10-24 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 ...

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

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

...:Text; /****垂直滚动条****/ private var vScrollBar:VScrollBar; public function UI_ScrollBar() { // 不支持WebGL时自动切换至Canvas Laya.init(800, 600, WebGL); //画布垂直居中对齐 Laya.stage.alignV = Stage.ALIGN_MIDDLE; //画布水平居中对齐 Laya.stage.alignH = Stage.ALIGN_CEN...

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

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

...:Text; /****水平滚动条****/ private var hScrollBar:HScrollBar; public function UI_ScrollBar() { // 不支持WebGL时自动切换至Canvas Laya.init(800, 600, WebGL); //画布垂直居中对齐 Laya.stage.alignV = Stage.ALIGN_MIDDLE; //画布水平居中对齐 Laya.stage.alignH = Stage.ALIGN_CEN...

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