大约有 2,482 项符合查询结果, 库内数据总量为 31,671 项。 (搜索耗时: 0.0058 秒)
Laya_社区(720) Laya3.0_api(672) Laya2.0_api(367) laya_api(298) Laya_示例(150) Laya2.0_示例(114) Laya2.0_文档(107) Laya3.0_文档(54)
...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
...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
...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
...../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
...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
...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
...画实例就可以拥有不同的播放速度了!/** * 角色创建 */ 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
...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
...含百度地图的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
...,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