大约有 2,789 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0107 秒)
Laya_社区(1162) Laya3.0_api(543) Laya2.0_api(297) laya_api(221) Laya2.0_文档(201) Laya_示例(139) Laya3.0_文档(117) Laya2.0_示例(109)
...库jquery的方法。 Browser.window.$(Browser.document).ready(function():void{ Browser.window.alert("jquery调用成功"); }); } } } ``` 编译运行后,我们可以看到弹窗成功,表明已经调用成功。我们在AS3项目中成功的实现了混合编码。 ### 4. JS调用AS接口 ...
来源: Laya2.0_文档 发布时间: 20210715
...andler.create(this, this.onUIAssetsLoaded)); } private onUIAssetsLoaded(): void { for (var i: number = 0, len = this.skins.length; i < len; ++i) { var btn: Button = this.createButton(this.skins[i]); var x: number = i % this.COLUMNS * this.HORIZONTAL_SPACING + this.xOffset; var y: number = (i / this....
来源: Laya_示例 发布时间: 20260303
...无法修改 public EnqueueItem(key:number,MeshSprite:Laya.MeshSprite3D):void{ if(this.m_ObjectPoolDic[key]) { //对象池中存在该 key 对应的池 this.m_ObjectPoolDic[key].push(MeshSprite); }else { //对象池中不存在该 key 对应的池 console.log("获取对象错误,没有 该值所...
来源: Laya_社区 发布时间: 20191206
... Laya.Box } ) private box: Laya.Box; constructor() { super(); } onStart(): void { //加载预制体文件 Laya.loader.load("resources/Title.lh").then( (res)=>{ //创建预制体 let label: Laya.Label = res.create(); //添加预制体Label字体到box节点下 this.box.addChild( label ); } ); } } ...
来源: Laya3.0_文档 发布时间: 20241014
...4.png) 开发者需要自己去加载分包和资源 ``` onConfigLoaded(): void { Laya.stage.on(Laya.Event.CLICK, this, this.toPage2) } toPage2(): void { my.redirectTo({ url: "/subpackage1/page2/index", success: function () { console.log("success") }, fail: function (err) { console.log("2222", err) ...
来源: Laya2.0_文档 发布时间: 20210715
... Laya.Box } ) private box: Laya.Box; constructor() { super(); } onStart(): void { //加载预制体文件 Laya.loader.load("resources/Title.lh").then( (res)=>{ //创建预制体 let label: Laya.Label = res.create(); //添加预制体Label字体到box节点下 this.box.addChild( label ); } ); } } ...
来源: Laya3.0_文档 发布时间: 20251105
...form float u_YOffset; uniform float u_ZDistance; varying vec2 v_textcoord; void main() { v_textcoord = a_Textcoord; vec4 vPos = (u_View * u_WorldMat) * a_Position; float zOff = vPos.z / u_ZDistance; vPos += vec4(u_XOffset, u_YOffset, 0.0, 0.0) * zOff * zOff; gl_Position = u_Projection * vPos; } `; v...
来源: Laya_社区 发布时间: 20201009
...tVelocity clone():* 克隆。 GradientVelocity cloneTo(destObject:*):void 克隆。 GradientVelocity createByConstant(constant:Vector3):GradientVelocity[static] 通过固定速度创建一个 GradientVelocity 实例。 GradientVelocity createByGradient(gradientX:GradientDataNumber, gradi...
来源: laya_api 发布时间: 20170929
...tVelocity clone():* 克隆。 GradientVelocity cloneTo(destObject:*):void 克隆。 GradientVelocity createByConstant(constant:Vector3):GradientVelocity[static] 通过固定速度创建一个 GradientVelocity 实例。 GradientVelocity createByGradient(gradientX:GradientDataNumber, gradi...
来源: Laya2.0_api 发布时间: 20190513
...ds MethodDefined By RaycastHit()RaycastHit cloneTo(dec:RaycastHit):voidRaycastHitProperty Detaildistancepropertypublic var distance:Numberpositionproperty public var position:Vector3sprite3Dproperty public var sprite3D:Sprite3DtriangleNormalsproperty public var triangleNormals:Arraytriang...
来源: laya_api 发布时间: 20170929