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

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

1301. swf预加载问题 [ 53%]

...EventDispatcher; import laya.net.Loader; import laya.utils.Handler; public class BeforLoader extends EventDispatcher { public static const BEFORLOADERFINISH:String = "BeforLoaderFinish"; private const ADDONE:String = "bingan/AddOne.swf"; private const BG:String = "bingan/bg.swf"; private const CDOWN...

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

1302. 精灵 · LayaAir3.4 · 引擎文档 · LAYABOX [ 53%]

...下添加一个自定义组件脚本,并添加如下代码: const { regClass, property } = Laya; @regClass() export class NewScript extends Laya.Script { //declare owner : Laya.Sprite3D; @property({ type: Laya.Sprite }) public sprite1: Laya.Sprite; @property({ type: Laya.Sprite }) public sprite2...

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

1303. 分享:LayaAir下如何获取图集下的小图资源? [ 52%]

...et.Loader; import laya.resource.Texture; import laya.utils.Handler; public class Main { public function Main() { //初始化引擎 Laya.init(600, 800); //加载引擎需要的资源 Laya.loader.load([{url:"res/atlas/atlas_res.json",type:Loader.ATLAS}], Handler.create(this, onLoaded)); } private func...

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

1304. laya.physics.joint.MotorJoint_API3.0 [ 52%]

...nals Only exported Menu Globals "laya/physics/joint/MotorJoint" MotorJoint Class MotorJoint 马达关节:用来限制两个刚体,使其相对位置和角度保持不变 Hierarchy JointBase MotorJoint Index Constructors constructor Properties _extra _singleton collideConnected otherBody owner ru...

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

1305. 动画状态脚本(ActionScript-3D基础(AS3)-LayaAir3D之Animator动画) [ 52%]

...port laya.display.Text; //继承自AnimatorStateScript(动画状态脚本) class AnimatorStateScriptTest extends AnimatorStateScript { private var _text:Text = null; public function get text():Text { return _text; } public function set text(value:Text):int { _text = value; } public function Animator...

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

1306. 为什么谷歌浏览器调试可以显示这些文字打包后却没有了 [ 52%]

...6:15 会不会和设置的字体有关系 18336093936 • 2017-09-11 16:17 class CAffiche { private textfiled:Laya.HTMLDivElement; public Reset():void { gRoomView.chatBox.innerHTML = ""; gRoomView.chatBox.height = 1; } public SysSay(txt:string):void { this.AddChat(0, "法官", tx...

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

1307. 2D自由形态光 · LayaAir3.4 · 引擎文档 · LAYABOX [ 52%]

...了一个脚本示例供大家参照。 示例代码如下: const { regClass } = Laya; @regClass() export class LightEffectDemo extends Laya.Script { declare owner: Laya.Sprite; private lightComp: Laya.FreeformLight2D; private rotateSpeed: number = 2; // 增加旋转速度 private scaleTime: numbe...

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

1308. Laya3.0正式版spine3.8的动画资源不能正常显示 [ 52%]

... Loader = Laya.Loader; import SpineTemplet = Laya.SpineTemplet; const { regClass, property } = Laya; @regClass() export class Main extends Laya.Script { private skeleton: SpineSkeleton; private index: number = -1; public pageWidth: number; public pageHeight: number; onStart() { console.log("Game sta...

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

1309. 物理射线检测(JavaScript-3D基础(JS)-LayaAir3D之物理系统) [ 52%]

...m/api2/Chinese/index.html?version=2.9.0beta&type=3D&category=BulletPhysics&class=laya.d3.physics.PhysicsSimulation)。射线检测使用的接口有4个,分为两类。`raycastFromTo`,`raycastAllFromTo`一类,`rayCast`,`rayCastAll`一类。我们将前面2个成为A类,后面为B类,我...

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

1310. drawToCanvas绘制显示不全 [ 52%]

...链接 提交 3 个回复 之肖 赞同来自: 测试代码 export default class TestView extends TestViewUI {     constructor() {         super();     }     onAwake() {         this.nativeImg = new Image();         let style = this.nativeImg.style;         style.position = 'ab...

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