/// <inheritdoc /> protected override void Initialize() { base.Initialize(); this.initIntensity = this.light.Intensity; this.initColor = this.light.Color; ARMobileService.GetService(out this.arService); }
/// <inheritdoc /> protected override void Initialize() { base.Initialize(); if (ARMobileService.GetService(out this.arService)) { this.arService.AddedAnchor += this.OnAddedAnchor; this.arService.UpdatedAnchor += this.OnUpdatedAnchor; this.arService.RemovedAnchor += this.OnRemovedAnchor; } }
/// <inheritdoc /> protected override void ResolveDependencies() { base.ResolveDependencies(); if (ARMobileService.GetService(out this.service)) { this.service.WorldAlignment = this.worldAlignment; this.service.TrackPosition = this.trackPosition; this.service.PlaneDetection = this.planeDetection; this.service.PointCloudEnabled = this.pointCloudEnabled; this.service.LightEstimationEnabled = this.lightEstimationEnabled; } }
/// <inheritdoc /> protected override void Initialize() { base.Initialize(); this.material = this.materialComponent.Material; if (!ARMobileService.GetService(out this.arService)) { return; } if (this.material != null) { if (this.material is StandardMaterial) { var standard = this.material as StandardMaterial; this.initDiffuse = standard.DiffuseColor; this.initAmbient = standard.AmbientColor; this.initEnv = standard.EnvironmentAmount; this.initIBL = standard.IBLFactor; } else if (this.material is ForwardMaterial) { var forward = this.material as ForwardMaterial; this.initDiffuse = forward.DiffuseColor; this.initAmbient = forward.AmbientColor; } else if (this.material is EnvironmentMaterial) { var env = this.material as EnvironmentMaterial; this.initDiffuse = env.DiffuseColor; this.initAmbient = env.AmbientColor; this.initEnv = env.EnvironmentAmount; } } }