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

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

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

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

2022. laya.resource.Texture [ 53%]

API DocumentationAll Packages | All Classes | Index | Frames No Frames TextureProperties | Methods | Events Packagelaya.resourceClasspublic class TextureInheritanceTexture EventDispatcher ObjectSubclasses RenderTarget2D Texture 是一个纹理处理类。 Public Properties PropertyDefined...

来源: laya_api 发布时间: 20170929

2023. laya.d3.core.material.UnlitMaterial [ 53%]

API DocumentationAll Packages | All Classes | Index | Frames No Frames UnlitMaterialProperties | Methods | Constants Packagelaya.d3.core.materialClasspublic class UnlitMaterialInheritanceUnlitMaterial BaseMaterial laya.resource.Resource UnlitMaterial 类用于实现不受光照影响的材...

来源: Laya2.0_api 发布时间: 20190513

2024. laya.particle.ParticleTemplate2D_API3.0 [ 53%]

...xported Menu Globals "laya/particle/ParticleTemplate2D" ParticleTemplate2D Class ParticleTemplate2D Hierarchy Resource ParticleTemplate2D Implements ISubmit Index Constructors constructor Properties _id destroyedImmediately lock name settings sv texture url uuid x y DEBUG activeBlendType Accessors c...

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

2025. typescript语言版本的LayaAir.d.ts的MiniAdpter只有一个接口 [ 53%]

...有一个接口 类库版本:1.7.19.1beta declare module laya.wx.mini { class MiniAdpter { /** * 初始化回调 * @param isPosMsg 是否需要在主域中自动将加载的文本数据自动传递到子域,默认 false * @param isSon 是否是子域,默认为false */ static init(isPosMsg?:boo...

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

2026. 屏幕适配-屏幕适配 [ 53%]

...= Laya.Event; import Image = Laya.Image; import WebGL = Laya.WebGL; export class SmartScale_T { //所有适配模式 private modes: Array = ["noscale", "exactfit", "showall", "noborder", "full", "fixedwidth", "fixedheight"]; //当前适配模式索引 private index: number = 0; //全局文本信息 ...

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

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

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

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

2028. 如何自定义一个类实现类似List的功能的Grid [ 53%]

...个类,实现类似List的功能的Grid,下面是List的官方代码 class List extends Box implements IRender, IItem { /**改变 <code>List</code> 的选择项时执行的处理器,(默认返回参数: 项索引(index:number))。*/ selectHandler: Handler; /**单元格渲染...

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

2029. textInput的单行输入&多行输入(TypeScript-LayaAir基础篇(TS)-文本) [ 53%]

...ya.Stage; import Browser = Laya.Browser; import WebGL = Laya.WebGL; export class HelloLayabox { constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya....

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

2030. 二次开发 异步回调没反应 [ 53%]

...onfig.ins.isDev) { success.runWith(1); return; } var VGUtil = Laya.PlatformClass.createClass("com.szdn.game.fkzy.VGUtil"); VGUtil.callWithBack(back, "showVideoAd", type);  function back(code){ LayaManager.showTextTip("广告返回成功:"+code); success.runWith(code); } }  android: public static...

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