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

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

2251. 垂直布局容器组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 43%]

...xport class NewScript extends Laya.Script { @property({ type: Laya.VBox }) public vbox: Laya.VBox; //组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 onAwake(): void { this.vbox.pos(100, 100); this.vbox.bgColor = "#ffffff"; this.vbox.space = 30; thi...

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

2252. 动画不显示 [ 43%]

...ui.DebugPanelUI;     import laya.device.motion.AccelerationInfo;     public class LayaSample {                  private var m_bkSound:Sound;         private var m_mapLayer:Sprite;         private var m_MapImgUrl:String;         private var m_Role:Animation;    ...

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

2253. 水平布局容器组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 43%]

...xport class NewScript extends Laya.Script { @property({ type: Laya.HBox }) public hbox: Laya.HBox; //组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 onAwake(): void { this.hbox.pos(100, 100); this.hbox.bgColor = "#ffffff"; this.hbox.space = 100; th...

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

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

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

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

2255. 分享:关于自定义场景继承的实现 [ 42%]

...egClass; export module ui { export class CustomSceneUI extends BaseScene { public txt_hello:Laya.Label; constructor(){ super()} createChildren():void { super.createChildren(); this.loadScene("CustomScene"); } } REG("ui.CustomSceneUI",CustomSceneUI); }   创建runtime类 如果想方便的引用导...

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

2256. 单选框组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 42%]

...port class NewScript extends Laya.Script { @property({ type: Laya.Radio }) public radio: Laya.Radio; //组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 onAwake(): void { this.radio.skin = "atlas/comp/radio.png"; //皮肤 this.radio.stateNum = 3; //...

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

2257. 使用createFrames创建的图集动画。如何单独修改这个缓存动画播放速度 [ 42%]

...画实例就可以拥有不同的播放速度了!/** * 角色创建 */ public function init(interval,type:String,hp:Number,speed:Number,hitRadius:Number,camp:Number,heroType:Number = 0):void { //初始化属性 this.type = type; this.hp = hp; this.speed = speed; this.hitRadius = hitRadius; this.ca...

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

2258. laya.d3.component.animator.Animator_API3.0 [ 42%]

...ring search index... The search index is not available layaair Options All Public Public/Protected All Inherited Externals Only exported Menu Globals "laya/d3/component/Animator/Animator" Animator Class Animator Animator 类用于创建动画组件。 Hierarchy Component Animator Index Constructors ...

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

2259. 使用百度地图显示当前位置(ActionScript-LayaAir基础篇(AS3)-硬件设备相关) [ 42%]

...含百度地图的div容器 ``` ### 二、接着是构造函数: ```java public function WatchPosition() { Laya.init(1, 1);   init();   // 使用高精度位置 Geolocation.enableHighAccuracy = true; Geolocation.watchPosition(Handler.create(this, updatePosition), Handler.create(this, on...

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

2260. 在list的data中给HTMLDIVElement 的innerHTML赋值不成功 [ 42%]

...,time:"13:00",news:"呵呵哒z7,哈哈哈漂亮"}, ] public function ChatWindowView(){ chatSetup(); expressionSetup(); } private function chatSetup():void{ chatList.vScrollBarSkin=null; chatList.selectEnable=true; chatList.scrollBar.elasticBackTime = 150; chatList.scrollBar.ela...

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