Cesium for Unity 去除Cesium Logo

效果图

1、dotnet和cmake

复制代码
dotnet --version 
9.0.307
cmake-3.31.9-windows-x86_64.msi

2、Windows启用长路径

3、clone com.cesium.unity到在Unity工程的Packages下

复制代码
直接用最新的代码
git clone --recurse-submodules https://github.com/CesiumGS/cesium-unity.git com.cesium.unity 
com.cesium.unity
cd com.cesium.unity
dotnet publish Reinterop~ -o .
cd native~
Debug版本
cmake -B build -S . -DCMAKE_BUILD_TYPE=Debug
cmake --build build -j14 --target install --config Debug
Release版本
cmake -B build -S . -DCMAKE_BUILD_TYPE=RelWithDebInfo 
cmake --build build -j14 --target install --config RelWithDebInfo

4、遇见 IonTokenTroubleshootingWindowImpl.h:3:10: fatal error: 'DotNet/System/String.h' file not

found

编辑器打开工程找个代码,加个空格保存编译一下,再关掉

再走一遍

cmake -B build -S . -DCMAKE_BUILD_TYPE=Debug

5、去掉logo

源码文件:native~/Runtime/src/CesiumCreditSystemImpl.cpp

修改位置:注释掉调用 htmlToCreditComponents方法的代码

cmake --build build -j14 --target install --config Debug

相关推荐
在路上看风景36 分钟前
4.5 顶点和片元
unity
在路上看风景12 小时前
31. Unity 异步加载的底层细节
unity
天人合一peng14 小时前
Unity中做表头时像work中整个调整宽窄
unity
小李也疯狂1 天前
Unity 中的立方体贴图(Cubemaps)
unity·游戏引擎·贴图·cubemap
牛掰是怎么形成的1 天前
Unity材质贴图引用陷阱:包体暴涨真相
unity·材质·贴图
呆呆敲代码的小Y1 天前
【Unity工具篇】| 超实用工具LuBan,快速上手使用
游戏·unity·游戏引擎·unity插件·luban·免费游戏·游戏配置表
EQ-雪梨蛋花汤1 天前
【Unity优化】Unity多场景加载优化与资源释放完整指南:解决Additive加载卡顿、预热、卸载与内存释放问题
unity·游戏引擎
我的offer在哪里1 天前
用 Unity 从 0 做一个「可以玩的」游戏,需要哪些步骤和流程
游戏·unity·游戏引擎
泡泡茶壶ᐇ1 天前
Unity游戏开发入门指南:从零开始理解游戏引擎核心概念
unity·游戏引擎
YigAin1 天前
Unity中的Lock,到底在锁什么,什么时候该用?
unity