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

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

2301. 为什么创建的脚本 变量在编辑模式赋值后 运行时为undfined [ 49%]

...头像者 • 2018-10-24 18:14 写一个ts文件,写上 export default class Move extends Laya.Script{ /** @prop {name:target,tips:"目标容器",type:Prefab}*/ targetPrefab:Laya.Prefab; } 将文件在编辑模式下赋给点添加组件=》code=》move 然后创建一个box拖为预制...

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

2302. WXOpenDataViewer组件用于制作微信排行榜,报错 [ 49%]

...文档步骤用WXOpenDataViewer做排行榜的时候,会报Can not find class laya.ui.WXOpenDataViewer,然后去引擎文件找这个类,发现没有laya.ui.WXOpenDataViewer,发布到微信小游戏中,也会报undefined,不知道往下怎么进行,我利用Beta3版本中的WXOpenDataV...

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

2303. laya.d3.physics.CharacterController_API3.0 [ 49%]

...ted Menu Globals "laya/d3/physics/CharacterController" CharacterController Class CharacterController CharacterController 类用于创建角色控制器。 Hierarchy PhysicsComponent CharacterController Index Constructors constructor Properties _extra _singleton canScaleShape owner runInEditor script...

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

2304. 自定义页面基类的时候,会自动添加Laya命名空间导致报错 [ 49%]

...己的BaseView) declare module Laya{//在这个module里添加     class BaseView extends Scene{}//继承自Scene }里加上自己定义的页面,然后在编辑页面F9的Code导入类里写上引用和赋值   import BaseView from "../BaseView"; Laya.BaseView = BaseView 2019-09-06 0 1 分...

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

2305. dialog的lock属性没出现 [ 49%]

... laya.ui.Image; import laya.utils.Handler; import laya.webgl.WebGL; public class DialogCenterClose { private const DIALOG_WIDTH:int = 220; private const DIALOG_HEIGHT:int = 275; private const CLOSE_BTN_WIDTH:int = 43; private const CLOSE_BTN_PADDING:int = 5; private var assets:Array; public function...

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

2306. List选中项下滚会变 [ 49%]

...eHandler = new Laya.Handler(this,this.onMouse);//鼠标事件响应 } Laya.class(ServerListView,"ServerListView",_super); var _proto_ = ServerListView.prototype; //选择列表项时的相应时间,参数index是选中项的下标 // _proto_.onSelect = function(index){ // console.log("index",index...

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

2307. EXT:webgl support OES_vertex_array_object! [ 49%]

...defined? 关于同为object层,层级设置无效的问题 Warning!,this class[MiniAdpter] already exist: Object {init: } LayaAirIDE2.2 - Laya3D init error ,must support webGL 在初始化时候使用canvas 或者WebGL 两种模式对使用引擎有什么区别? 2.5引擎版本webgl使用遮罩...

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

2308. 3D场景中背景无法透明,版本2.7.1 [ 49%]

...2.7.1 版本为2.7.1,无法背景透明,永远是黑色 export default class GameUI extends Laya.Scene { constructor() { super(); Config.isAlpha = true; Laya.init(480, 900); Laya.stage.bgColor = null; //加载场景文件 this.loadScene("test/TestScene.scene"); //添加3D场景 var scene = Laya....

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

2309. 脚本的事件(ActionScript-3D基础(AS3)-LayaAir3D的脚本使用) [ 49%]

...址](https://layaair.ldc.layabox.com/api2/Chinese/index.html?category=Core&class=laya.d3.component.Script3D))。 关于脚本的添加使用这里不做过的讲解,在以往的示例中都有或多或少的使用脚本。关于脚本的官方示例([demo地址](https://layaair.ldc.layabox.com/d...

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

2310. 输入设备-地图 [ 49%]

...Info; import Browser = Laya.Browser; import Handler = Laya.Handler; export class InputDevice_Map { // 百度地图 private map; private marker; private BMap = Browser.window.BMap; private convertor = new this.BMap.Convertor(); // Div private mapDiv; private infoText:Text; constructor() { Laya.init(B...

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