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

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

311. laya.ui.Dialog [ 63%]

...回调函数处理器。 回调函数参数为用户点击的按钮名字name:String。 Dialog  closeType : String关闭类型,点击name为"close","cancel","sure","no","yes","no"的按钮时,会自动记录点击按钮的名称Dialog customRenderEnable : Boolean[write-only] 设置...

来源: Laya2.0_api 发布时间: 20190513

312. list控件内字体大小设置无效 [ 62%]

...ion updateItem(cell:Box, index:int):void{ var itemImg:Image=cell.getChildByName("itemImg") as Image; var itemName:Label=cell.getChildByName("itemName") as Label; itemImg.skin=cell.dataSource.image_url; itemName.width=Number(itemName.text.length*20); itemName.height=20; itemName.fontSize =12; itemNam...

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

313. 关于 iframe跳转地址 [ 62%]

...ar iframe = document.createElement("iframe"); iframe.id = "iframe"; iframe.name = "iframe"; iframe.frameBorder = "no"; iframe.marginwidth="0px"; iframe.marginheight="0px" ; iframe.scrolling = "no"; iframe.border="0px" iframe.style.position = "absolute"; iframe.style.left = "0px"; iframe.style.top = ...

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

314. laya.display.AnimationPlayerBase [ 62%]

...only] 返回鼠标在此对象坐标系上的 Y 轴坐标信息。 Sprite name : String节点名称。Node numChildren : int[read-only] 子对象数量。 Node optimizeScrollRect : Boolean 指定是否对使用了 scrollRect 的显示对象进行优化处理。默认为false(不优化)。 当值...

来源: laya_api 发布时间: 20170929

315. laya.d3.core.light.LightSprite [ 62%]

...EDTYPE_REALTIME : int = 0[static] 灯光烘培类型-实时。LightSprite name : String节点名称。Node numChildren : int[read-only] 子对象数量。 Node parent : Node[read-only] 父节点。Node scene : *[read-only] 获得所属场景。 Node  shadow : Boolean 获取是否产生阴影...

来源: Laya2.0_api 发布时间: 20190513

316. laya.ui.List_API3.0 [ 62%]

...l, "#ff0000"); var label:Label = new Label(); label.text = "100000"; label.name = "label";//设置 label 的name属性值。 label.size(100, 20); addChild(label); } } example (function (_super){ function Item(){ Item.__super.call(this);//初始化父类 this.graphics.drawRect(0, 0, 100, 20, "#ff0000...

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

317. 图集动画(JavaScript-LayaAir基础篇(JS)-动画基础) [ 62%]

...动画模板的作用 我们回顾一下`play()`方法的第三个参数`name`。当我们将图集中的某组动画资源创建为动画模版,并给予模板命名后,`play()`方法的name参数就可以使用动画模版的命名,然后通过指定动画模板的名称来实现指定动画...

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

318. 物理射线检测(JavaScript-3D基础(JS)-LayaAir3D之物理系统) [ 62%]

...s://layaair.ldc.layabox.com/demo2/?language=ch&category=3d&group=Physics3D&name=PhysicsWorld_RayShapeCast)); ```typescript this.hitResult = new Laya.HitResult(); this.hitResults= []; //是否穿透 if (this.castAll) { //进行射线检测,检测所有碰撞的物体 this.scene.physicsSimulation....

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

319. laya.map.MapLayer [ 62%]

...测依据。 Stage对象和UI的View组件默认为true。 Sprite  layerName : String = null当前Layer的名称MapLayer  _mapData : Array = nullMapLayer mask : Sprite 遮罩,可以设置一个对象(支持位图和矢量图),根据对象形状进行遮罩显示。 【注意】遮罩对象...

来源: Laya2.0_api 发布时间: 20190513

320. laya.utils.Utils [ 62%]

...出的坐标X值、Y值、ScaleX值、ScaleY值。 Utils  getQueryString(name:String):String[static] 获得URL参数值 Utils  getTransformRelativeToWindow(coordinateSpace:Sprite, x:Number, y:Number):Object[static] 获取指定区域内相对于窗口左上角的transform。 Utils  measureText...

来源: Laya2.0_api 发布时间: 20190513