找回密码
 立即注册
搜索

[3D] 3D Target Cursor Marker 1.0

[复制链接]
135 |0
发表于 2023-3-9 15:13:49 | 显示全部楼层 |阅读模式



A simple 3D target cursor
No textures needed
Color can be adjusted
Just uses an animation clip
works with LWRP/HDRP/classic pipeline (material needs to be converted) - no custom shader
Includes a sample project on how to use it with e.g. a NavMeshAgent.

Simple example code
// Cache it.
FeedbackPointer _feedbackPointer = new FeedbackPointer();
// Initialize it.
_feedbackPointer.PreparePointer(_moveToIndicator, _feedbackPointerScale);
// Use it with a 3D position.
_feedbackPointer.ShowPointer(navHit.position)
Tested in 2018.x to 2021.x but should also work in older Unity versions.


一个简单的3D目标光标
不需要纹理
颜色可调
只是使用一个动画剪辑
工作与LWRP/HDRP/经典管道(材料需要转换)-没有自定义着色器
包括一个关于如何使用NavMeshAgent的示例项目。

简单的示例代码
//缓存。
FeedbackPointer _feedbackPointer = new FeedbackPointer();
//初始化。
_feedbackPointer。PreparePointer (_moveToIndicator _feedbackPointerScale);
//与3D位置一起使用
_feedbackPointer.ShowPointer (navHit.position)
2018年测试。X到2021年。x,但也应该工作在旧的Unity版本。






回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

快速回复 返回顶部 返回列表