大约有 2,482 项符合查询结果, 库内数据总量为 31,671 项。 (搜索耗时: 0.0064 秒)
Laya_社区(720) Laya3.0_api(672) Laya2.0_api(367) laya_api(298) Laya_示例(150) Laya2.0_示例(114) Laya2.0_文档(107) Laya3.0_文档(54)
... textfield : any = null; constructor(){ super(); // this.initLineView(); } public initLineView (data) : void { this.pos(0,0); console.log(this.textfield); if (this.textfield == null) { var stextfield = new HTMLDivElement(); } } 2018-07-09 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有...
来源: Laya_社区 发布时间: 20180709
...p 请求 once 的 回调参数,如何传递和接收? once () method public function once(type:String, caller:*, listener:Function, args:Array = null):EventDispatcher使用 EventDispatcher 对象注册指定类型的事件侦听器对象,以使侦听器能够接收事件通知,此侦听事...
来源: Laya_社区 发布时间: 20180304
...听太多 需要分离 监听和执行 /** * 基础信息按钮监听 */ public AffirmButton1Click(event: Laya.Event) { } 但是实际运行的情况下就会报错 Explain.ts:11 TypeError: Cannot read property 'AllTitleButtonClick' of undefined Explain.ts:31 at Explain.onAwake (file:///E:/NewLaya...
来源: Laya_社区 发布时间: 20190410
...中,描述矢量都是用的Float32Array,而不是直接写一个xyz。public var elements:* = new Float32Array(2); 这样做能够得到更高的运行效率么,不太懂为什么要这么用? 2018-01-26 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已...
来源: Laya_社区 发布时间: 20180126
...ionType, tips:"", type:EditOption, option:"aaa,bbb,true", default:"bbb"}*/ public editOptionType:string = "bbb";这样使用字符串是可以的,但是我现在需要显示自己定义的枚举 enum ENUM_Effect{ null=0, popupEffect = 1, closeEffect = 2 }; function ENUM_ChangeString(enumObject) ...
来源: Laya_社区 发布时间: 20191029
...ort laya.events.Event; import laya.utils.Browser; import laya.webgl.WebGL; public class Timer_DelayExcute { private var button1:Sprite; private var button2:Sprite; public function Timer_DelayExcute() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, Web...
来源: Laya2.0_示例 发布时间: 20260106
...ring search index... The search index is not available layaair Options All Public Public/Protected All Inherited Externals Only exported Menu Globals "laya/physics/joint/GearJoint" GearJoint Class GearJoint 齿轮关节:用来模拟两个齿轮间的约束关系,齿轮旋转时,产生的动量...
来源: Laya3.0_api 发布时间: 20231115
...TRANSFORM (0x02) 导致的,请问到底是哪个才对啊? Sprite.as public function set transform(value:Matrix):void { this._tfChanged = false; var m:Matrix = this._transform || (this._transform = _createTransform()); value.copyTo(m); _setTransform(m); //设置transform时重置x,y if (value)...
来源: Laya_社区 发布时间: 20181125
...console.log("aaa4"); this.img_closeWebiFrame.src = "SlotGameTemplate/phone_public_setting_source/phone_btn_setting_page_back_up.png"; };但是 ontouchstart,ontouchend,ontouchcancel,onfocusout 都收到无法监听事件的回应,这是什么原因呢? 附件 : --> ErrorSample.zip ...
来源: Laya_社区 发布时间: 20180126
...ityEngine; using System.Collections; [ExecuteInEditMode] public class U01 : MonoBehaviour { private bool isRenderer = false; private Renderer renderers; void Awake () { renderers = trans...
来源: Laya_社区 发布时间: 20171113