Class ARFoundationFrameSource
- Namespace
- easyar
- Assembly
- EasyAR.Sense.dll
ConnectstheoutputofARFoundationinthescenetoEasyAR'scustomframesourceinput.ProvidesARFoundationsupportviaEasyARSense'scustomcameracapability.
Thisframesourceisamotion-trackingdeviceandoutputsmotiondatain
To usethisframesource,``ARFoundation``isrequired.YouneedtoconfigureARFoundationaccordingtotheofficialdocumentation.
public abstract class ARFoundationFrameSource : FrameSource
- Inheritance
-
ARFoundationFrameSource
- Derived
Properties
AvailableCenterMode
Providedonlywhencreatinganewframesource.Itisaccessedonlyduringthe
Allavailablecenteringmodes.
protected override IReadOnlyList<ARSession.ARCenterMode> AvailableCenterMode { get; }
Property Value
Camera
Providedonlywhencreatinganewframesource.Itisaccessedonlyduringthe
Ondesktopdevicesormobiles,thiscamerarepresentsthe
protected override Camera Camera { get; }
Property Value
CameraFrameStarted
Providedonlywhencreatinganewframesource.Itisaccessedthroughoutthelifetimeof
Whethercameraframeinputhasstarted.
protected override bool CameraFrameStarted { get; }
Property Value
DeviceCameras
Providedonlywhencreatinganewframesource.Itisaccessedwhen
Thedevicecameraprovidingcameraframedata.Ifthecameraframedataisprovidedbymultiplecameras,allcamerasmustbeincludedinthelist.
Ensurethevalueiscorrectwhen
protected override List<FrameSourceCamera> DeviceCameras { get; }
Property Value
Display
Providedonlywhencreatinganewframesource.Itisaccessedonlyduringthe
Providesdisplaysysteminformation.Youcanuse
protected override IDisplay Display { get; }
Property Value
IsAvailable
Providedonlywhencreatinganewframesource.Itisaccessedonlyduringthe
Whetherthecurrentframesourceisavailable.
Ifthevalueequalsnull,
protected override Optional<bool> IsAvailable { get; }
Property Value
IsCameraUnderControl
Providedonlywhencreatinganewframesource.Itisaccessedonlyduringthe
Whenthevalueistrue,thesessionupdatesthecamera'stransformandrenderscameraimages.
Whencreatingahead-mounteddisplay(HMD)extension,itshouldbefalse.Youshouldhavefullcontroloverthe3Dcamerainthescene.Youshouldhandlecamerarendering,especiallyinVSTmode.
protected override bool IsCameraUnderControl { get; }
Property Value
IsHMD
Providedonlywhencreatinganewframesource.Itisaccessedonlyduringthe
Whetherthecurrentframesourceisahead-mounteddisplay.IfitisanHMD,diagnosticinformationwillbedisplayedona3Dboardinfrontofthecamera.
Someframefiltersoperatedifferentlyondevices.
protected override bool IsHMD { get; }
Property Value
Methods
CheckAvailability()
Providedonlywhencreatinganewframesource.Itisaccessedonlyduringthe
A
protected override IEnumerator CheckAvailability()
Returns
OnSessionStart(ARSession)
Providedonlywhencreatinganewframesource.Itisaccessedonlyduring
Handlessessionstartupifthisframesourcehasbeenassembledinto
protected override void OnSessionStart(ARSession session)
Parameters
session
OnSessionStop()
Providedonlywhencreatinganewframesource.Itisaccessedduring
Handlessessionshutdownifthisframesourcehasbeenassembledinto
protected override void OnSessionStop()