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

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

341. 开放数据域组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 47%]

...信开发者工具中查看效果: const Layout = require("./engine.js").default; let sharedCanvas = wx.getSharedCanvas(); let sharedContext = sharedCanvas.getContext("2d"); // 使用XML格式的内容来描述开放数据域的界面,一般使用模板函数来构建 let template = ` <view i...

来源: Laya3.0_文档 发布时间: 20251010

342. laya.ui.List_API3.0 [ 47%]

...aya/ui/UIComponent.ts:24 创建一个新的 Component 实例。 Parameters Default value createChildren: boolean = true Returns List Properties Optional _extra _extra: INodeExtra Inherited from Node._extra Defined in laya/display/Node.ts:56 _ownGraphics _ownGraphics: boolean = false Inherited from T...

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

343. laya.display.Text_API3.0 [ 47%]

...鼠标事件检测依据。 Stage对象和UI的View组件默认为true。 default false 优先检测此对象的子对象,当递归检测完所有子对象后,仍然没有找到目标对象,最后再检测此对象。 ignoreLang ignoreLang: boolean Defined in laya/display/Text.ts:140 标记此...

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

344. laya.d3.renderobjs.nativeobj.NativeTransform3D_API3.0 [ 47%]

...。 Parameters target: Vector3 观察目标。 up: Vector3 向上向量。 Default value isLocal: boolean = false 是否局部空间。 Default value isCamera: boolean = true Returns void objLookat objLookat(target: Vector3, up: Vector3, isLocal?: boolean): void Overrides Transform3D.objLookat Defin...

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

345. laya 的list组件,如果有多页信息,怎么实现翻页丫?? [ 47%]

...fo from "../data/ConfigInfo"; import { ui } from "../ui/layaMaxUI"; export default class RuleDialog extends ui.scene.RuleDialogUI { private m_index: number = -1; private m_downValue: number = -1; constructor() { super(); this.list_rule.hScrollBarSkin = ""; this.list_rule.renderHandler = new Laya.Han...

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

346. Cannot read property 'rayCast' of undefined [ 47%]

Cannot read property 'rayCast' of undefined export default class indexscene extends Laya.Script { constructor(){ super(); this.rotation = new Laya.Vector3(0, 0.01, 0); this.point = new Laya.Vector2(); this.ray = new Laya.Ray(new Laya.Vector3(),new Laya.Vector3()); //1.开启第四个参数 let conf...

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

347. 发现bug,update大问题!!!!!!!!! 2.13版本 [ 47%]

...rt Const from "../Const"; import UIMain from "../ui/Game/UIMain";  export default class GameWnd extends BaseWin {     public view: UIMain;     /** 角色 */     private character: Laya.Sprite     /** 角色刚体*/     private rig: Laya.RigidBody     /** 医疗包*/     private addhp:...

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

348. laya.d3.physicscannon.CannonPhysicsCollider_API3.0 [ 46%]

...nnonPhysicsCollider.ts:6 创建一个 PhysicsCollider 实例。 Parameters Default value collisionGroup: number = -1 所属碰撞组。 Default value canCollideWith: number = -1 可产生碰撞的碰撞组。 Returns CannonPhysicsCollider Properties Optional _extra _extra: IComponentExtra Inherited ...

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

349. 性能测试-卡通人物2 [ 46%]

...) { nameLabel = new Text(); nameLabel.color = "#FFFFFF"; nameLabel.text = "Default"; nameLabel.fontSize = 13; nameLabel.width = Character.WIDTH; nameLabel.align = "center"; this.addChild(nameLabel); } Character.prototype.setSpeed = function(value) { this.speed = value; } Character.prototype.setName ...

来源: Laya_示例 发布时间: 20251209

350. [LayaAir2]在使用videoDom创建视频元素后iPad跟iPhone中位置不一样 [ 46%]

...a.HtmlVideo播放视频 * @ author:xs * @ data: 2024-03-05 16:20 */ export default class VideoDom { htmlvideo:Laya.HtmlVideo; constructor() { Laya.stage.on(Laya.Event.CLICK,this,this.onClick); } onClick(){ this.initVideo(); } initVideo() { this.htmlvideo = new Laya.HtmlVideo(); this.htmlvideo.setSou...

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