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

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

1211. 分享:LayaAir实现曲线运动 [ 55%]

...,具体demo已上传附件 package { import laya.display.Sprite; public class CurveDemo { private var ball:Sprite; private var xflag:Boolean; private var v:uint=2; private var d:uint=150; public function CurveDemo() { Laya.init(800,400); ball=new Sprite(); ball.graphics.drawCircle(0,0,50,"#FF00FF...

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

1212. 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

1213. 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

1214. 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

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

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

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

1216. 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

1217. 在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

1218. 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

1219. 单选框组容器组件 · LayaAir3.4 · 引擎文档 · 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

1220. 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_示例 发布时间: 20260303