# 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 下载量 30 浏览量
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
- 粉丝: 2170
- 资源: 9145
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 基于滑动窗口模型的合作结构分析及队伍战略优化 -以足球比赛为例
- java多商户版健身房saas管理系统 含小程序、总后台管理、多商户前后端分离的后端接口api,用户于健身房工作人员小程序api.zip
- 足球比赛中基于社会网络分析的团队表现改进模型
- 【小程序毕业设计】互动打卡小程序源码(完整前后端+mysql+说明文档).zip
- 基于网络科学与回归模型的足球队伍合作表现量化分析
- 基于传球网络与对抗回归评估足球团队合作表现的综合研究
- 足球团队多级网络与性能评估模型及其实际应用
- JavaScript 每周一个小程序.zip
- c语言基于51单片机设计的火灾报警器源码(包含labview的上位机)高分项目
- USB的UAC设备开发(STM32)
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功