Class AREngineFrameSource
- Namespace
- easyar
- Assembly
- EasyAR.Sense.dll
ConnectstheoutputoftheAREnginecameradevicetotheEasyARinput'scustomframesourceinthescene.ProvidesHuaweiAREnginesupportthroughtheEasyARSensecustomcamerafunctionality.
Thisframesourceisamotiontrackingdeviceandoutputsmotiondatain
Thisframesourcedoesnotusethe``HuaweiAREngineUnitySDK``anddoesnotneedtobeadded.
public class AREngineFrameSource : FrameSource
- Inheritance
-
AREngineFrameSource
- Inherited Members
Fields
DesiredFocusMode
Thedesiredfocusmode,effectiveonlyifmodifiedbeforethe
Note:Duetohardwareorsystemlimitations,thefocusswitchmaybeineffectiveonsomedevices.
public AREngineCameraDeviceFocusMode DesiredFocusMode
Properties
Camera
Providedonlywhencreatinganewframesource.Itisonlyaccessedduringthe
Ondesktopormobiledevices,thiscamerarepresentsthe
protected override Camera Camera { get; }
CameraCandidate
Alternativefor
public Camera CameraCandidate { get; set; }
CameraFrameStarted
Providedonlywhencreatinganewframesource.Itisaccessedthroughoutthelifetimeof
Whethercameraframeinputhasstarted.
protected override bool CameraFrameStarted { get; }
DeviceCameras
Providedonlywhencreatinganewframesource.Itisaccessedwhen
Thedevicecameraprovidingcameraframedata.Ifcameraframedatacomesfrommultiplecameras,allcamerasneedtobeincludedinthelist.
Ensurethevalueiscorrectwhen
protected override List<FrameSourceCamera> DeviceCameras { get; }
Display
Providedonlywhencreatinganewframesource.Itisonlyaccessedduringthe
Providesthesystemdisplayinformation.Youcanuse
protected override IDisplay Display { get; }
FrameRateRange
Frameraterange.Availableonlywhen
public Vector2 FrameRateRange { get; }
IsAvailable
Providedonlywhencreatinganewframesource.Itisonlyaccessedduringthe
Whetherthecurrentframesourceisavailable.
Ifthevalueisnull,
protected override Optional<bool> IsAvailable { get; }
IsCameraUnderControl
Providedonlywhencreatinganewframesource.Itisonlyaccessedduringthe
Whentrue,thesessionwillupdatethecamera'stransformandrenderthecameraimage.
Whencreatingahead-mounteddisplayextension,itshouldbefalse.Youshouldhavefullcontroloverthe3Dcamerainthescene.Youshouldhandlecamerarendering,especiallyinVST(videosee-through)mode.
protected override bool IsCameraUnderControl { get; }
IsHMD
Providedonlywhencreatinganewframesource.Itisonlyaccessedduringthe
Whetherthecurrentframesourceisahead-mounteddisplay.Ifitis,diagnosticinformationwillbedisplayedona3Dboardinfrontofthecamera.
Someframefiltersbehavedifferentlyondevices.
protected override bool IsHMD { get; }
Opened
Whetherthecameraisopen.
public bool Opened { get; }
Size
Currentimagesize.Availableonlywhen
public Optional<Vector2Int> Size { get; }
enabled
Start/stopsamplingvideostreamdatawhen
public bool enabled { get; set; }
Methods
Close()
Closethedevice.
public void Close()
OnSessionStart(ARSession)
Providedonlywhencreatinganewframesource.Itisonlyaccessedduringthe
Handlessessionstartup,ifthisframesourcehasbeenassembledinto
protected override void OnSessionStart(ARSession session)
Parameters
session
OnSessionStop()
Providedonlywhencreatinganewframesource.Itisaccessedduring
Handlessessionstop,ifthisframesourcehasbeenassembledinto
protected override void OnSessionStop()
Open()
Openthedevice.If
public void Open()
Events
DeviceClosed
Eventwhendeviceisclosed.
public event Action DeviceClosed
DeviceOpened
Eventwhendeviceisopened,booleandindicatessuccess.
public event Action<bool, PermissionStatus, string> DeviceOpened