Class ARFoundationFrameSource
- Namespace
- easyar
- Assembly
- EasyAR.Sense.dll
ConnectstheoutputofARFoundationinascenetoEasyAR'sinputviaacustomframesource.ProvidesARFoundationsupportthroughEasyARSense'scustomcameracapability.
Thisframesourceisamotion-trackingdevicethatoutputsmotiondatain
Tousethisframesource,``ARFoundation``isrequired.YouneedtoconfigureARFoundationaccordingtotheofficialdocumentation.
public abstract class ARFoundationFrameSource : FrameSource
- Inheritance
-
ARFoundationFrameSource
- Derived
Properties
AvailableCenterMode
Providedonlywhencreatinganewframesource.Itisaccessedonlyduringthe
Allavailabletracking-centermodes.
protected override IReadOnlyList<ARSession.ARCenterMode> AvailableCenterMode { get; }
Camera
Providedonlywhencreatinganewframesource.Itisaccessedonlyduringthe
Ondesktopormobiledevices,thiscamerarepresentsthe
protected override Camera Camera { get; }
CameraFrameStarted
Providedonlywhencreatinganewframesource.Itisaccessedthroughoutthelifetimeofthe
Whethercameraframeinputhasstarted.
protected override bool CameraFrameStarted { get; }
DeviceCameras
Providedonlywhencreatinganewframesource.Itisaccessedwhen
Providesdevicecamerasthatdelivercameraframedata.Ifcameraframedataisprovidedbymultiplecameras,thelistshouldincludeallofthem.
Ensurethevalueiscorrectwhen
protected override List<FrameSourceCamera> DeviceCameras { get; }
Display
Providedonlywhencreatinganewframesource.Itisaccessedonlyduringthe
Providesthesystemdisplayinformation.Youcanuse
protected override IDisplay Display { get; }
IsAvailable
Providedonlywhencreatinganewframesource.Itisaccessedonlyduringthe
Whetherthecurrentframesourceisavailable.
Ifthevalueequalsnull,
protected override Optional<bool> IsAvailable { get; }
IsCameraUnderControl
Providedonlywhencreatinganewframesource.Itisaccessedonlyduringthe
Whenthevalueistrue,thesessionupdatesthecamera'stransformandrenderscameraimages.
Whencreatingahead-mounted-displayextension,itshouldbefalse.Youshouldhavefullcontroloverthe3Dcamerainthescene.Youshouldhandlecamerarendering,especiallyinvideo-see-throughmode.
protected override bool IsCameraUnderControl { get; }
IsHMD
Providedonlywhencreatinganewframesource.Itisaccessedonlyduringthe
Whetherthecurrentframesourceisahead-mounteddisplay.Ifitisahead-mounteddisplay,diagnosticinformationwillbedisplayedona3Dboardinfrontofthecamera.
Someframefiltersmayoperatedifferentlyonadevice.
protected override bool IsHMD { get; }
enabled
public bool enabled { get; set; }
Methods
CheckAvailability()
Providedonlywhencreatinganewframesource.Itisaccessedonlyduringthe
protected override IEnumerator CheckAvailability()
OnSessionStart(ARSession)
Providedonlywhencreatinganewframesource.Itisaccessedonlyduringthe
Handlessessionstartupifthisframesourceisalreadyassembledinto
protected override void OnSessionStart(ARSession session)
Parameters
session
OnSessionStop()
Providedonlywhencreatinganewframesource.Itisaccessedduring
Handlessessionshutdownifthisframesourceisalreadyassembledinto
protected override void OnSessionStop()