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

ue5 小知识点 ue的world type,pie editor game

说明以该命令行模式启动游戏的前提下的两个问题:

1.WITH_EDITOR中的代码会被编译

2.由于没有在编辑器中(即没有打开虚幻编辑器),所以GIsEditor为false

WITH_EDITOR和WITH_EDITORONLY_DATA的区别

在论坛中找到的答案:

WITH_EDITORONLY_DATA in headers for wrapping reflected members.
WITH_EDITOR in CPP files for code.. Has nothing to do with reflection.

意思就是:

头文件中使用WITH_EDITORONLY_DATA包装反射的成员。

在CPP文件的代码中使用WITH_EDITOR,与反射无关。

callineditor

	
.hUFUNCTION(CallInEditor, Category = "Sky Creator|General")void SetEditorTimeOfDay(float NewValue);UFUNCTION(CallInEditor, Category = "Sky Creator|General")void SetEditorWeatherPreset(USkyCreatorWeatherPreset* NewValue);UFUNCTION(CallInEditor, Category = "Sky Creator|General")void SetEditorWeatherSettings(FSkyCreatorWeatherSettings NewValue);.cpp#define SKYCREATOR_DECLARE_SEQUENCER_SETFUNCTION_ANDUPDATE(MemberType, MemberName) void ASkyCreator::Set##MemberName(MemberType NewValue)\
{\if (MemberName != NewValue)\{\MemberName = NewValue;\UpdateSettings();\}\
}\SKYCREATOR_DECLARE_SEQUENCER_SETFUNCTION(float, EditorTimeOfDay);
SKYCREATOR_DECLARE_SEQUENCER_SETFUNCTION_ANDUPDATE(USkyCreatorWeatherPreset*, EditorWeatherPreset);SKYCREATOR_DECLARE_SEQUENCER_SETFUNCTION(float, SunriseTime);
SKYCREATOR_DECLARE_SEQUENCER_SETFUNCTION(float, SunsetTime);
SKYCREATOR_DECLARE_SEQUENCER_SETFUNCTION(float, SunDawnOffsetTim

//ue 5.2
namespace EWorldType
{enum Type{/** An untyped world, in most cases this will be the vestigial worlds of streamed in sub-levels */None,/** The game world */Game,/** A world being edited in the editor */Editor,/** A Play In Editor world */PIE,/** A preview world for an editor tool */EditorPreview,/** A preview world for a game */GamePreview,/** A minimal RPC world for a game */GameRPC,/** An editor world that was loaded but not currently being edited in the level editor */Inactive};
}

http://www.lryc.cn/news/154594.html

相关文章:

  • 两表union 如何保证group by 字段唯一
  • 【⑰MySQL】 变量 | 循环 | 游标 | 处理程序
  • 如何在arXiv上发表一篇文章
  • 重要性采样
  • 说说Omega架构
  • 高忆管理:光刻胶概念强势拉升,同益股份、格林达涨停
  • 计算机图形学线性代数相关概念
  • 开源PHP 代挂机源码,可对接QQ、网易云、哔哩哔哩、QQ空间、等级加速等等
  • 【仿牛客论坛java项目】第五章 Kafka,构建TB级异步消息系统:阻塞队列、Kafka入门、Spring整合Kafka、发送系统通知、显示系统通知
  • 【AIGC专题】Stable Diffusion 从入门到企业级实战0401
  • Matlab信号处理1:模拟去除信号噪声
  • Bootstrap的行、列布局设计(网络系统设计)
  • 1.1 计算机网络在信息时代中的作用
  • mysql CONCAT使用
  • maven基础学习
  • uniapp移动端地图,点击气泡弹窗并实现精准定位
  • 2023牛客暑期多校训练营7 CI「位运算」「根号分治+容斥」
  • YOLOv5算法改进(10)— 替换主干网络之GhostNet
  • Android Canvas的使用
  • AI批量写文章伪原创:基于ChatGPT长文本模型,实现批量改写文章、批量回答问题(长期更新)
  • git常用场景记录 | 拉取远程分支A合并到本地分支B - 删除上一次的commit
  • 源码角度解析SpringBoot 自动配置
  • 【原创】H3C路由器OSPF测试
  • 计算机视觉:轨迹预测综述
  • 三维跨孔电磁波CT数据可视化框架搭建
  • OC和Swift混编,导入头文件‘xxx-Swift.h‘ file not found
  • 一文读懂HOOPS Native平台:快速开发桌面端、移动端3D应用程序!
  • Scrum工作模式及Scrum工具
  • [ros][ubuntu]ros在ubuntu18.04上工作空间创建和发布一个话题
  • 我的区块链笔记