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

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

1211. JSON文件加载成功后,怎么解析成Object对象 [ 55%]

....Loader; import laya.utils.Handler; /** * ... * @author OttoChen */ public class TestMain { private var txt:Text = null; public function TestMain() { Laya.init(800, 800); txt = new Text(); txt.mouseEnabled = false; txt.overflow = Text.SCROLL; txt.size(Laya.stage.width, Laya.stage.height); txt.pos(10...

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

1212. Button属性详解(ActionScript-IDE篇(AS3)-IDE组件属性详解) [ 55%]

...laya.ui.Button; import laya.utils.Handler; import laya.webgl.WebGL; public class ComponentDemo { //按钮资源路径 private var skin:String = "./res/img/btn_test.png"; public function ComponentDemo() { //初始化引擎,设置宽高并开启WebGL渲染模式 Laya.init(1334,750, WebGL); //设置...

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

1213. ios下怎么在oc中调用项目中的ts代码 [ 55%]

...的ts代码里有个类A,它有一个静态函数a,像这样: export class A {        public static a(data:string):void }   我在ios下oc代码里想调用A的静态函数a,代码写成 [[conchRuntime GetIOSConchRuntime] runJS:@"A.a('123')"];   运行后认为找不到A,我尝试...

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

1214. 为什么全局属性赋值后,在另外个函数中调用会自动变成undefined [ 55%]

...性赋值后,在另外个函数中调用会自动变成undefined public class MainPageController extends Scene {                  public var camera:Camera;                  public function MainPageController(){             super();            ...

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

1215. laya.d3.webxr.core.WebXRInput_API3.0 [ 55%]

...nals Only exported Menu Globals "laya/d3/WebXR/core/WebXRInput" WebXRInput Class WebXRInput author miner 类用来描述输入设备 Hierarchy EventDispatcher WebXRInput Index Constructors constructor Properties _lastXRPose gamepadAxis gamepadButton handness lastXRPose position ray rotation EVENT_FR...

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

1216. 在Unity中设置动画事件(JavaScript-3D基础(JS)-LayaAir3D之Animator动画) [ 55%]

...响事件的触发这里是随便取的名。 ```typescript export default class SceneScript extends Laya.Script3D { constructor(){ super(); //用于表现的方法 this.showMsgFunc = null; } //对应unity添加的AnimationEvent的动画事件函数,名字是可以对应上的 ShowMsg() { console....

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

1217. laya.maths.Rectangle [ 55%]

API DocumentationAll Packages | All Classes | Index | Frames No Frames RectangleProperties | Methods | Constants Packagelaya.mathsClasspublic class RectangleInheritanceRectangle Object Rectangle 对象是按其位置(由它左上角的点 (x, y) 确定)以及宽度和高度定义的区...

来源: laya_api 发布时间: 20170929

1218. 单选框组容器组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 55%]

...添加如下的示例代码,实现脚本控制RadioGroup: const { regClass, property } = Laya; @regClass() export class NewScript extends Laya.Script { @property({ type: Laya.RadioGroup }) public radiogroup: Laya.RadioGroup; //组件被激活后执行,此时所有节点和组件均已创建完...

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

1219. UI-Button [ 55%]

...laya.ui.Button; import laya.utils.Handler; import laya.webgl.WebGL; public class UI_Button { private const COLUMNS:int = 2; private const BUTTON_WIDTH:int = 147; private const BUTTON_HEIGHT:int = 165 / 3; private const HORIZONTAL_SPACING:int = 200; private const VERTICAL_SPACING:int = 100; private v...

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

1220. 求助高手请进,关于场景导入的问题~ [ 55%]

...scene1:GameScene = new GameScene(); Laya.stage.addChild(scene1);   public class GameScene extends Scene {    public function GameScene()    {       Laya.loader.create("LayaScene_01/loveScene.ls",Handler.create(this,this.completeHandler));    }          private function completeHandle...

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