Class AREngineFrameSource
- Namespace
- easyar
- Assembly
- EasyAR.Sense.dll
ConnectstheoutputoftheAREnginecameradevicetothecustomframesourceinputofEasyARinthescene.ProvidesHuaweiAREnginesupportthroughthecustomcameracapabilityofEasyARSense.
Thisframesourceisamotion-trackingdeviceandoutputsmotiondatain
Thisframesourcedoesnotusethe``HuaweiAREngineUnitySDK``anddoesnotrequireitsaddition.
public class AREngineFrameSource : FrameSource
- Inheritance
-
AREngineFrameSource
- Inherited Members
Fields
DesiredFocusMode
Thedesiredfocus-mode,effectiveonlyifmodifiedbeforethe
Note:Duetohardwareorsystemlimitations,thefocusswitchmaybeineffectiveonsomedevices.
public AREngineCameraDeviceFocusMode DesiredFocusMode
Field Value
Properties
Camera
Providedonlywhencreatinganewframesource.Itisonlyaccessedduringthe
Ondesktopdevicesormobilephones,thiscamerarepresentsthe
protected override Camera Camera { get; }
Property Value
CameraCandidate
Analternativeto
public Camera CameraCandidate { get; set; }
Property Value
CameraFrameStarted
Providedonlywhencreatinganewframesource.Itisaccessedthroughoutthelifetimeof
Whethercameraframeinputhasstarted.
protected override bool CameraFrameStarted { get; }
Property Value
DeviceCameras
Providedonlywhencreatinganewframesource.Itisaccessedonlywhen
Providesthedevicecameradeliveringcameraframedata.Ifthecameraframedataisprovidedbymultiplecameras,allcamerasneedtobeincludedinthelist.
Ensurethevalueiscorrectwhen
protected override List<FrameSourceCamera> DeviceCameras { get; }
Property Value
Display
Providedonlywhencreatinganewframesource.Itisonlyaccessedduringthe
Providesthesystemdisplayinformation.Youcanuse
protected override IDisplay Display { get; }
Property Value
FrameRateRange
Theframeraterange.Availableonlywhen
public Vector2 FrameRateRange { get; }
Property Value
IsAvailable
Providedonlywhencreatinganewframesource.Itisonlyaccessedduringthe
Whetherthecurrentframesourceisavailable.
Ifthevalueisnull,
protected override Optional<bool> IsAvailable { get; }
Property Value
IsCameraUnderControl
Providedonlywhencreatinganewframesource.Itisonlyaccessedduringthe
Whensettotrue,thesessionwillupdatethecamera'stransformandwillrenderthecameraimage.
Whencreatingahead-mounteddisplayextension,itshouldbefalse.Youshouldhavefullcontroloverthe3Dcamerainthescene.Youshouldhandlethecamerarendering,especiallyinVSTmode.
protected override bool IsCameraUnderControl { get; }
Property Value
IsHMD
Providedonlywhencreatinganewframesource.Itisonlyaccessedduringthe
Whetherthecurrentframesourceisahead-mounteddisplay.Ifitis,diagnosticinformationwillbedisplayedona3Dboardinfrontofthecamera.
Someframefiltersmaybehavedifferentlywhenrunningondevices.
protected override bool IsHMD { get; }
Property Value
Opened
Whetherthecameraisopen.
public bool Opened { get; }
Property Value
Size
Thecurrentimagesize.Availableonlywhen
public Optional<Vector2Int> Size { get; }
Property Value
Methods
Close()
Closesthedevice.
public void Close()
OnSessionStart(ARSession)
Providedonlywhencreatinganewframesource.Itisonlyaccessedduringthe
Handlessessionstartup,ifthisframesourcehasbeenassembledinto
protected override void OnSessionStart(ARSession session)
Parameters
session
OnSessionStop()
Providedonlywhencreatinganewframesource.Itisaccessedduring
Handlessessionshutdown,ifthisframesourcehasbeenassembledinto
protected override void OnSessionStop()
Open()
Opensthedevice.If
public void Open()
Events
DeviceClosed
Thedeviceclosedevent.
public event Action DeviceClosed
Event Type
DeviceOpened
Thedeviceopenedevent,wheretheboolvalueindicateswhetheritwassuccessful.
public event Action<bool, PermissionStatus, string> DeviceOpened