大约有 3,990 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0199 秒)
Laya_社区(2836) Laya2.0_文档(369) Laya2.0_api(225) laya_api(169) Laya_示例(157) Laya2.0_示例(117) Laya3.0_api(62) Laya3.0_文档(55)
...问题是,我想在laya中直接写webGL,例如: //获取canvas元素 var canvas = document.getElementById('canvas'); //获取绘制二维上下文 var ctx = canvas.getContext('2d'); 这样是不是不行? 附件 : --> 2018-01-15 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找...
来源: Laya_社区 发布时间: 20180115
...如何通过ClassUtils在知道类名的情况下得到这个类对象呢 var UIClass:any=Laya.ClassUtils.getClass("ClipView"); 这么写好像获取不到 2017-08-21 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复...
来源: Laya_社区 发布时间: 20170821
... _onEnable():void[override] MouseJointProperty Detailanchorpropertypublic var anchor:Array[首次设置有效]关节的链接点,是相对于自身刚体的左上角位置偏移,如果不设置,则根据鼠标点击点作为连接点dampingproperty damping:Number刚体在回归到节点过...
来源: Laya2.0_api 发布时间: 20190513
...LocalStorage.getJSON空对象在微信小游戏中被处理为空字符串 var equipDataArray = Laya.LocalStorage.getJSON('equipDataArray'); 如果getJSON为空,在LayaAir IDE中获取的是null,而在微信小游戏中获取的是''; getLocalStorage() { //清除本地存储 调试时取消下...
来源: Laya_社区 发布时间: 20190916
...ndex(this.scene, 0); //获取场景模型中的角色移动碰撞区模型 var moveArea = this.scene.getChildAt(0).getChildByName("MoveArea"); //设置为不渲染 moveArea.meshRender.enable = false; //加载网格碰撞器组件 var sprite3d1MeshCollider=moveArea.addComponent(Laya.MeshCollider); //...
来源: Laya_社区 发布时间: 20180118
...dler.create(this, onLoaded)); function onLoaded() { //实例化Panel组件 var panel = new Laya.Panel(); //给panel添加背景色 panel.graphics.drawRect(0, 0, 100, 100, "#ffcccc"); //给panel设置宽高 panel.size(100, 100); //给panel设置滚动条皮肤 panel.vScrollBarSkin = "comp/vscroll.png...
来源: Laya2.0_文档 发布时间: 20210715
...ction(value){ this._dataSource=value; for (var prop in this._dataSource){ if (this.hasOwnProperty(prop)&& !((typeof (this[prop])=='function'))){ this[prop]=this._dataSource[prop]; ...
来源: Laya_社区 发布时间: 20190803
...public class CConnector extends Socket { protected var sendBuf:Byte = null; protected var recvBuf:Byte = null; public function CConnector() { this.sendBuf = this.output; ...
来源: Laya_社区 发布时间: 20170920
...e(this,onLoaded),null,Loader.BUFFER); } private function onLoaded():void { var arr:ArrayBuffer=Laya.loader.getRes("hu.ttf"); if(Browser.window.conch) { Browser.window.conch.setFontFaceFromBuffer("hu",arr); } var text:Text=new Text(); text.font="hu"; text.fontSize=50; text.text="哈哈哈哈哈哈哈...
来源: Laya_社区 发布时间: 20161219
...e.bgColor = "#232628"; this.createInput(); } private createInput(): void { var inputText: Input = new Input(); inputText.size(350, 100); inputText.x = Laya.stage.width - inputText.width >> 1; inputText.y = Laya.stage.height - inputText.height >> 1; inputText.text = "这段文本不可编辑,但可...
来源: Laya2.0_示例 发布时间: 20251219