# FocusEntity
This package is based on [ARKit-FocusNode](https://github.com/maxxfrazer/ARKit-FocusNode), but adapted to work in Apple's framework RealityKit.
<p align="center">
<img src="https://img.shields.io/endpoint?url=https%3A%2F%2Fswiftpackageindex.com%2Fapi%2Fpackages%2Fmaxxfrazer%2FFocusEntity%2Fbadge%3Ftype%3Dswift-versions"/>
<img src="https://img.shields.io/endpoint?url=https%3A%2F%2Fswiftpackageindex.com%2Fapi%2Fpackages%2Fmaxxfrazer%2FFocusEntity%2Fbadge%3Ftype%3Dplatforms"/></br>
<img src="https://github.com/maxxfrazer/FocusEntity/workflows/swiftlint/badge.svg"/>
<img src="https://github.com/maxxfrazer/FocusEntity/workflows/build/badge.svg"/>
<img src="https://img.shields.io/github/license/maxxfrazer/FocusEntity"/>
</p>
<p align="center">
<img src="media/focusentity-dali.gif"/>
</p>
[The Example](./FocusEntity-Example) looks identical to the above GIF, which uses the FocusEntity classic style.
See the [documentation](https://maxxfrazer.github.io/FocusEntity/documentation/focusentity/) for more.
## Minimum Requirements
- Swift 5.2
- iOS 13.0 (RealityKit)
- Xcode 11
If you're unfamiliar with using RealityKit, I would also recommend reading my articles on [Getting Started with RealityKit](https://medium.com/@maxxfrazer/getting-started-with-realitykit-3b401d6f6f).
## Installation
### Swift Package Manager
Add the URL of this repository to your Xcode 11+ Project.
Go to File > Swift Packages > Add Package Dependency, and paste in this link:
`https://github.com/maxxfrazer/FocusEntity`
---
## Usage
See the [Example project](./FocusEntity-Example) for a full working example as can be seen in the GIF above
1. Install `FocusEntity` with Swift Package Manager
```
https://github.com/maxxfrazer/FocusEntity.git
```
2. Create an instance of FocusEntity, referencing your ARView:
```swift
let focusSquare = FocusEntity(on: self.arView, focus: .classic)
```
And that's it! The FocusEntity should already be tracking around your AR scene. There are options to turn the entity off or change its properties.
Check out [the documentation](https://maxxfrazer.github.io/FocusEntity/documentation/focusentity/) or [example project](FocusEntity-Example) to learn more.
---
Feel free to [send me a tweet](https://twitter.com/maxxfrazer) if you have any problems using FocusEntity, or open an Issue or PR!
> The original code to create this repository has been adapted from one of Apple's examples from 2018, [license also included](LICENSE.origin). I have adapted the code to be used and distributed from within a Swift Package, and now further adapted to work with [RealityKit](https://developer.apple.com/documentation/realitykit).
没有合适的资源?快使用搜索试试~ 我知道了~
Bringing_the_scanning_box_from_SceneKit_to_Reality
共35个文件
swift:12个
json:5个
yml:4个
需积分: 5 0 下载量 20 浏览量
2024-08-26
15:58:10
上传
评论
收藏 3.1MB ZIP 举报
温馨提示
Bringing_the_scanning_box_from_SceneKit_to_Reality_FocusEntity_Bringing_the_scanning_box_from_SceneKit_to_Reality_FocusEntity_FocusEntity_Bringing_the_scanning_box_from_SceneKit_to_Reality_FocusEntity.zip
资源推荐
资源详情
资源评论
收起资源包目录
Bringing_the_scanning_box_from_SceneKit_to_Reality_FocusEntity_Bringing_the_scanning_box_from_SceneKit_to_Reality_FocusEntity.zip (35个子文件)
FocusEntity-main
.swiftlint.yml 124B
LICENSE.origin 1KB
Package.swift 467B
media
focusentity-dali.gif 3.01MB
install_swiftlint.sh 731B
.github
ISSUE_TEMPLATE
feature_request.md 612B
bug_report.md 634B
workflows
deploy_docs.yml 1KB
swift-build-lint.yml 441B
LICENSE 1KB
.spi.yml 93B
Sources
FocusEntity
FocusEntity.swift 14KB
FocusEntityComponent.swift 4KB
FocusEntity+Segment.swift 4KB
FocusEntity+Alignment.swift 7KB
FocusEntity.docc
FocusEntity.md 1KB
FocusEntity+Classic.swift 3KB
float4x4+Extension.swift 806B
FocusEntity+Colored.swift 2KB
FocusEntity-Example
FocusEntity-Example
FocusARView.swift 2KB
Base.lproj
LaunchScreen.storyboard 2KB
Preview Content
Preview Assets.xcassets
Contents.json 62B
AppDelegate.swift 856B
BasicARView.swift 793B
Info.plist 2KB
ContentView.swift 750B
Assets.xcassets
Open.imageset
Contents.json 154B
Open.png 32KB
Contents.json 63B
AppIcon.appiconset
Contents.json 2KB
Add.imageset
Contents.json 155B
Close.png 34KB
FocusEntity-Example.xcodeproj
project.pbxproj 14KB
.gitignore 2KB
README.md 3KB
共 35 条
- 1
资源评论
好家伙VCC
- 粉丝: 1920
- 资源: 9085
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 虚拟文件管理系统20241031070002
- 技术资料分享0b-esp8266-system-description-cn-v1.4很好的技术资料.zip
- 技术资料分享0a-esp8266ex-datasheet-cn-v1.0很好的技术资料.zip
- AEC-Challenge-数据集资源
- christmasTree-圣诞树html网页代码
- java-emoji-converter-c++string
- xss-labs-xss漏洞
- Python-SecureHTTP-aes加密
- mnist_dataset-数据集资源
- 这个是吸烟数据集的标签,多种场合下实拍以及网络搜索得到吸烟数据集,其中包括3224张图像,和对应的yolo格式标注文件(txt)
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功