大约有 349 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0037 秒)
Laya3.0_api(161) Laya2.0_api(87) Laya_社区(50) laya_api(30) Laya_示例(14) Laya3.0_文档(5) Laya2.0_文档(2)
...I页面实例化之前注册一下组件即可。 注册组件: View.regComponent("ScaleButton",component.ScaleButton) regComponent第一个参数是组件名字,第二个参数是组件路径 2017-05-19 0 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 该问题目前已...
来源: Laya_社区 发布时间: 20170519
...览: 1249 关注: 3 人 king • 2018-01-29 17:47 package { import laya.d3.component.Script; import laya.d3.core.BaseCamera; import laya.d3.core.Camera; import laya.d3.core.Sprite3D; import laya.d3.core.render.RenderState; import laya.d3.core.scene.BaseScene; import laya.d3.core.scene.Scene; import ...
来源: Laya_社区 发布时间: 20170218
...mera.transform.rotate(new Laya.Vector3(-30, 0, 0), true, false); camera.addComponent(CameraMoveScript); camera.clearFlag = Laya.BaseCamera.CLEARFLAG_SKY; //camera.clearColor =null; //天空盒 var skyBox = new Laya.SkyBox(); camera.sky = skyBox; skyBox.textureCube = Laya.TextureCube.load("res/skyBox...
来源: Laya_社区 发布时间: 20181203
...otX' of null 打开弹窗UI时报错 Uncaught TypeError: Class constructor Component cannot be invoked without 'new' TypeError: Cannot read property 'length' of null TypeError: Cannot read property 'getSubShaderAt' of undefined Uncaught TypeError: Cannot read property 'indexCount' Uncaught TypeError...
来源: Laya_社区 发布时间: 20180307
...建一个自定义的组件脚本: import Sprite = Laya.Sprite; import Component = Laya.Component; import Nav2DAgent = Laya.Nav2DAgent; const { regClass, property } = Laya; @regClass() export class TestSprite extends Laya.Script { // 用于显示鼠标点击的位置 @property({ type: Laya.Sprite ...
来源: Laya3.0_文档 发布时间: 20251010
...性。具体实现参考下面的代码与注释。 **创建一个入口类ComponentDemo.as,编写如下代码:** ```java package { import laya.ui.CheckBox; import laya.utils.Handler; import laya.webgl.WebGL; import ui.ComponentDemoUI; public class ComponentDemo { //资源路径 private var skin...
来源: Laya2.0_文档 发布时间: 20210714
... 'Button' of undefined at file:///D:/LayaBox/TestPro/T24_CostomSBtn/bin/js/component/ScaleButton.js:11:27 TypeError: Cannot read property 'ScaleButton' of undefined at file:///D:/LayaBox/TestPro/T24_CostomSBtn/bin/js/LayaUISample.js:62:43 所以我就改成 “import Button = laya.ui.Button;” Moni...
来源: Laya_社区 发布时间: 20171031
...;package advancedModule { import laya.ani.AnimationTemplet; import laya.d3.component.animation.SkinAnimations; import laya.d3.core.Camera; import laya.d3.core.MeshSprite3D; import laya.d3.core.Sprite3D; import laya.d3.core.light.DirectionLight; import laya.d3.core.material.StandardMaterial; import l...
来源: Laya_示例 发布时间: 20251130
...mera.transform.rotate(new Laya.Vector3(-15, 0, 0), true, false); camera.addComponent(CameraMoveScript); //方向光 var directionLight = scene.addChild(new Laya.DirectionLight()); directionLight.color = new Laya.Vector3(0.7, 0.6, 0.6); directionLight.direction = new Laya.Vector3(0, -1.0, -1.0); var ...
来源: Laya_示例 发布时间: 20251130
...ead property 'displayObject' of null Uncaught TypeError: Class constructor Component cannot be invoked without 'new' 构建APP Android Studio打出的APK 报apploader.js:4515 TypeError: addGlobalValueDefine is not a function 关于graphics.drawTexture方法设置纹理报错TypeError: texture.getIsR...
来源: Laya_社区 发布时间: 20200309