Skip to main content
API Reference NianticSpatial.NSDK.AR.Loader

NsdkSettings

↳ extends UnityEngine.ScriptableObject

Declaration

public partial class NsdkSettings : ScriptableObject

Summary

Build time settings for NSDK AR. These are serialized to an asset file and can only be altered via the Unity Inspector window.


Properties

NameTypeSummary
readonly AccessExpiresAtint
Time when the current runtime access token expires
readonly AccessTokenstring
The effective access token. Returns the access token override if set,
otherwise the developer auth access token.
readonly AccessTokenOverridestring
An access token that takes priority over developer authentication when set.
AuthEnvironmentAuthEnvironmentType
-
readonly DevicePlaybackSettingsINsdkPlaybackSettings
-
readonly EditorPlaybackSettingsINsdkPlaybackSettings
-
readonly FileNsdkLogLevelLogLevel
The highest log level to print for a file logger
static readonly InstanceNsdkSettings
Accessor to NSDK settings asset instance.
THIS SHOULD ONLY BE USED IN SPECIFIC SITUATIONS:
1) Editor classes that need to read/write values to the asset
2) By NsdkLoaderHelper to initialize the runtime settings on application load
All other code should use NsdkLoaderHelper.ActiveSettings to get the settings,
otherwise it will get the asset instance's values instead of the runtime instance's, which
may be different in tests or if the dev has modified settings at runtime.
LocationAndCompassDataSourceLocationDataSource
Source of location and compass data fetched from the NianticSpatial.NSDK.AR.Input APIs
readonly LoopInfinitelybool
-
readonly NsdkSimulationParamsNsdkSimulationParams
-
readonly PlaybackDatasetPathstring
-
readonly PreferLidarIfAvailablebool
When enabled, LiDAR depth will be used instead of NSDK depth on devices where LiDAR is available.
Features unique to the NsdkOcclusionExtension cannot be used.
readonly RefreshExpiresAtint
Time when the current runtime refresh token expires
readonly RefreshTokenstring
The current runtime refresh token
readonly RunManuallybool
-
SpoofCompassInfoSpoofCompassInfo
Values returned by compass service when in Spoof mode
SpoofLocationInfoSpoofLocationInfo
Values returned by location service when in Spoof mode
readonly StdOutNsdkLogLevelLogLevel
The highest log level to print for the stdout logger - typically for internal testing. Keep this off unless
you know what you are looking for
readonly UnityNsdkLogLevelLogLevel
The highest log level to print for Unity logger
readonly UseDeveloperAuthenticationbool
-
readonly UseNsdkDepthbool
When enabled, NSDK's depth and occlusion features can be used via ARFoundation. Additional occlusion
features unique to NSDK can be configured in the NsdkOcclusionExtension component.
readonly UseNsdkDeviceMappingbool
When enabled, NSDK's device mapping features can be used.
readonly UseNsdkMeshingbool
When enabled, NSDK's meshing features can be used via ARFoundation. Additional mesh features unique
to NSDK can be configured in the LightshipMeshingExtension component.
readonly UseNsdkScanningbool
When enabled, NSDK's scanning features can be used.
readonly UseNsdkSceneSegmentationbool
When enabled, NSDK's scene segmentation features can be used.
readonly UseNsdkVps2bool
When enabled, NSDK's VPS2 feature can be used.
readonly UsePlaybackbool
-

Fields

NameTypeSummary
static BuildSettingsKeystring
-
static SettingsKeystring
-

Methods

NameTypeSummary
UpdateAccessvoid
-