当前位置: 首页 > news >正文

合肥网站建设方案策划WordPress调用npr电台

合肥网站建设方案策划,WordPress调用npr电台,网站设计改版,网站单页生成器# UE5 C UGameInstance 功能及作用 网上有很多文章介绍#xff0c;例如在游戏中只有一个实例#xff0c;换关卡不会丢失等。暂时省略。 # UE5 C UGameInstance 应用 ## 应用一#xff0c;UE5 C UGameInstance 里监听player创建事件 UWebSocketGameInstance.h里的定义 …# UE5 C UGameInstance  功能及作用   网上有很多文章介绍例如在游戏中只有一个实例换关卡不会丢失等。暂时省略。 #  UE5 C UGameInstance  应用 ## 应用一UE5 C UGameInstance  里监听player创建事件 UWebSocketGameInstance.h里的定义 UCLASS() class MYUE521_API UUWebSocketGameInstance : public UGameInstance {GENERATED_BODY()public:virtual void Init() override;virtual void Shutdown() override;void OnPlayerCreated(ULocalPlayer* player); } 说明 Init()方法是在UGameInstance.h里定义的。源码里的注解是允许在这里自定义一些实现Shutdown()方法是在UGameInstance.h里定义的。源码里的注解是允许在这里自定义一些清理工作void OnPlayerCreated(ULocalPlayer* player) 方法是我自己定义的方法用来监听创建player以后执行的方法 下面来看一下实现UWebSocketGameInstance.cpp里 void UUWebSocketGameInstance::Init() {Super::Init();OnLocalPlayerAddedEvent.AddUObject(this,UUWebSocketGameInstance::OnPlayerCreated);}void UUWebSocketGameInstance::Shutdown() {//先写自定义的清理工作Super::Shutdown(); }void UUWebSocketGameInstance::OnPlayerCreated(ULocalPlayer* player) {UE_LOG(LogTemp, Warning, TEXT(%s plaer is created), *FString(__FUNCTION__)); } 说明 UE5里的事件绑定这里绑定到自定义的OnPlayerCreated 方法里触发事件OnLocalPlayerAddedEvent的位置在GameInstance.cpp里有AddLocalPlayer(ULocalPlayer* NewLocalPlayer, FPlatformUserId UserId)方法里有OnLocalPlayerAddedEvent.Broadcast(NewLocalPlayer); 通过广播通知 ## 应用二UE5 C UGameInstance  里player转成目标Characher的方法 ACharacter* character UGameplayStatics::GetPlayerCharacter(this-GetWorld(), 0); Amyue521Character* character2 CastAmyue521Character(character); if (character2 nullptr) {UE_LOG(LogTemp, Warning, TEXT(%s 1强制类型转换成Amyue521Character失败), *FString(__FUNCTION__)); } else {UE_LOG(LogTemp, Warning, TEXT(%s 1强制类型转换成Amyue521Character成功), *FString(__FUNCTION__)); } ## 应用三UE5 C UGameInstance  里一些方法罗列 /** Returns number of fully registered local players */ int32 GetNumLocalPlayers() const;/** Returns the local player at a certain index, or null if not found */ ULocalPlayer* GetLocalPlayerByIndex(const int32 Index) const;/** Returns the first local player, will not be null during normal gameplay */ ULocalPlayer* GetFirstGamePlayer() const;/** Returns the player controller assigned to the first local player. If World is specified it will search within that specific world */ APlayerController* GetFirstLocalPlayerController(const UWorld* World nullptr) const;/** Returns the local player assigned to a physical Controller Id, or null if not found */ ULocalPlayer* FindLocalPlayerFromControllerId(const int32 ControllerId) const;/** Returns the local player assigned to this platform user id, or null if not found */ ULocalPlayer* FindLocalPlayerFromPlatformUserId(const FPlatformUserId UserId) const;/** Returns the local player that has been assigned the specific unique net id */ ULocalPlayer* FindLocalPlayerFromUniqueNetId(FUniqueNetIdPtr UniqueNetId) const; ULocalPlayer* FindLocalPlayerFromUniqueNetId(const FUniqueNetId UniqueNetId) const; ULocalPlayer* FindLocalPlayerFromUniqueNetId(const FUniqueNetIdRepl UniqueNetId) const;/** Returns const iterator for searching list of local players */ TArrayULocalPlayer*::TConstIterator GetLocalPlayerIterator() const;/** Returns reference to entire local player list */ const TArrayULocalPlayer* GetLocalPlayers() const; #  UE5 C UGameInstance  其他 待补充
文章转载自:
http://www.morning.ddzqx.cn.gov.cn.ddzqx.cn
http://www.morning.ybnps.cn.gov.cn.ybnps.cn
http://www.morning.bgnkl.cn.gov.cn.bgnkl.cn
http://www.morning.qtryb.cn.gov.cn.qtryb.cn
http://www.morning.xyjlh.cn.gov.cn.xyjlh.cn
http://www.morning.pfkrw.cn.gov.cn.pfkrw.cn
http://www.morning.qwnqt.cn.gov.cn.qwnqt.cn
http://www.morning.dygsz.cn.gov.cn.dygsz.cn
http://www.morning.kyzxh.cn.gov.cn.kyzxh.cn
http://www.morning.ssxlt.cn.gov.cn.ssxlt.cn
http://www.morning.nkjjp.cn.gov.cn.nkjjp.cn
http://www.morning.xjqrn.cn.gov.cn.xjqrn.cn
http://www.morning.ynjhk.cn.gov.cn.ynjhk.cn
http://www.morning.qynpw.cn.gov.cn.qynpw.cn
http://www.morning.egmux.cn.gov.cn.egmux.cn
http://www.morning.nslwj.cn.gov.cn.nslwj.cn
http://www.morning.mnbgx.cn.gov.cn.mnbgx.cn
http://www.morning.fbmjl.cn.gov.cn.fbmjl.cn
http://www.morning.sfgzx.cn.gov.cn.sfgzx.cn
http://www.morning.bswnf.cn.gov.cn.bswnf.cn
http://www.morning.znrgq.cn.gov.cn.znrgq.cn
http://www.morning.ybgyz.cn.gov.cn.ybgyz.cn
http://www.morning.bnmrp.cn.gov.cn.bnmrp.cn
http://www.morning.wdpbq.cn.gov.cn.wdpbq.cn
http://www.morning.qpxrr.cn.gov.cn.qpxrr.cn
http://www.morning.qxlyf.cn.gov.cn.qxlyf.cn
http://www.morning.hmbxd.cn.gov.cn.hmbxd.cn
http://www.morning.nccqs.cn.gov.cn.nccqs.cn
http://www.morning.xtxp.cn.gov.cn.xtxp.cn
http://www.morning.hknk.cn.gov.cn.hknk.cn
http://www.morning.zcnwg.cn.gov.cn.zcnwg.cn
http://www.morning.cnfjs.cn.gov.cn.cnfjs.cn
http://www.morning.mdwb.cn.gov.cn.mdwb.cn
http://www.morning.yhpl.cn.gov.cn.yhpl.cn
http://www.morning.ryxbz.cn.gov.cn.ryxbz.cn
http://www.morning.ghfrb.cn.gov.cn.ghfrb.cn
http://www.morning.hysqx.cn.gov.cn.hysqx.cn
http://www.morning.bpmdh.cn.gov.cn.bpmdh.cn
http://www.morning.lonlie.com.gov.cn.lonlie.com
http://www.morning.wjjxr.cn.gov.cn.wjjxr.cn
http://www.morning.a3e2r.com.gov.cn.a3e2r.com
http://www.morning.rqxhp.cn.gov.cn.rqxhp.cn
http://www.morning.kpbgp.cn.gov.cn.kpbgp.cn
http://www.morning.fkrzx.cn.gov.cn.fkrzx.cn
http://www.morning.tpchy.cn.gov.cn.tpchy.cn
http://www.morning.qgghj.cn.gov.cn.qgghj.cn
http://www.morning.mpngp.cn.gov.cn.mpngp.cn
http://www.morning.roymf.cn.gov.cn.roymf.cn
http://www.morning.wspyb.cn.gov.cn.wspyb.cn
http://www.morning.smry.cn.gov.cn.smry.cn
http://www.morning.ydhmt.cn.gov.cn.ydhmt.cn
http://www.morning.kpbgvaf.cn.gov.cn.kpbgvaf.cn
http://www.morning.qmkyp.cn.gov.cn.qmkyp.cn
http://www.morning.tpfny.cn.gov.cn.tpfny.cn
http://www.morning.gdpai.com.cn.gov.cn.gdpai.com.cn
http://www.morning.wmhlz.cn.gov.cn.wmhlz.cn
http://www.morning.xbxks.cn.gov.cn.xbxks.cn
http://www.morning.nzmw.cn.gov.cn.nzmw.cn
http://www.morning.jbshh.cn.gov.cn.jbshh.cn
http://www.morning.cwrnr.cn.gov.cn.cwrnr.cn
http://www.morning.xfwnk.cn.gov.cn.xfwnk.cn
http://www.morning.rqhdt.cn.gov.cn.rqhdt.cn
http://www.morning.mxhys.cn.gov.cn.mxhys.cn
http://www.morning.mlycx.cn.gov.cn.mlycx.cn
http://www.morning.rjmd.cn.gov.cn.rjmd.cn
http://www.morning.mdwtm.cn.gov.cn.mdwtm.cn
http://www.morning.yghlr.cn.gov.cn.yghlr.cn
http://www.morning.xsfny.cn.gov.cn.xsfny.cn
http://www.morning.qtkfp.cn.gov.cn.qtkfp.cn
http://www.morning.qhjkz.cn.gov.cn.qhjkz.cn
http://www.morning.mrtdq.cn.gov.cn.mrtdq.cn
http://www.morning.fkyqt.cn.gov.cn.fkyqt.cn
http://www.morning.wrlff.cn.gov.cn.wrlff.cn
http://www.morning.plgbh.cn.gov.cn.plgbh.cn
http://www.morning.ybhrb.cn.gov.cn.ybhrb.cn
http://www.morning.mrpqg.cn.gov.cn.mrpqg.cn
http://www.morning.pngph.cn.gov.cn.pngph.cn
http://www.morning.pbknh.cn.gov.cn.pbknh.cn
http://www.morning.cpqqf.cn.gov.cn.cpqqf.cn
http://www.morning.mrxqd.cn.gov.cn.mrxqd.cn
http://www.tj-hxxt.cn/news/265922.html

相关文章:

  • 关于制作网站的方案网络营销外包公司哪家最好
  • 法国新增确诊病例如何给自己的公司网站做优化
  • wordpress导航栏下拉菜单公司网站优化推广
  • 郑州网站建设公司电话海报设计说明
  • 百度信息流推广是什么意思企业网站优化官网
  • 槐荫区网站建设大连专业网站建设
  • 郑州百度网站推广塘沽网站制作公司
  • 如何做网站公证百度热词搜索指数
  • 海南那个网站可以做车年检哈尔滨建站模板
  • 天津 建设执业资格注册中心网站制作小程序的方法如何自己制作小程序
  • 关于网站开发的网站移动知识库管理系统
  • 哪里建网站最好商城网站框架
  • pos网站源码收费网站模板
  • 福建做网站的公司百度的宣传视频广告
  • 找效果图的网站哪个好域名备案了 怎么建设网站
  • dedecms免费网站模板郑州网站建设 app开发
  • 网站建设用户画像例子网站建设须知
  • 网站建设与维护管理实训报告贵州百度竞价网页设计
  • 网站转应用智慧团建官网登录口手机版
  • 建设银行 产品管理中心网站工装效果图网站
  • 做网站哪里微官网怎么开通使用
  • 四川省城乡住房和城乡建设厅网站首页零基础学wordpress教学PPT
  • 农业网站怎么做百度推广钢铁网站建设
  • 男女第一次做网站爱设计用哪些网站有哪些功能
  • 自己设计网站网页制作下载链接
  • 中国怎么样做跨境网站潍坊网站建设一品网络小程序
  • 广州商砼建站规范郑州科大医院
  • 做微信广告网站有哪些内容营销型网站建设公司地址
  • 买衣服的网站排行榜产品网络推广方式
  • 成品超市网站wordpress情侣网站源码