CKConfiguration
public final class CKConfiguration
A collection of properties used by CubeKit.
Important
CKConfiguration is an object singleton. The shared instance is stored in static shared property.
Note
By default the CKConfiguration.shared object is set to auto.
// Tells CubeKit to use iPhone prefab configuration.
CKConfiguration.shared = .iPhone
-
The shared configuration object used by CubeKit. Default to associated device preset.
Declaration
Swift
public static var shared: CKConfiguration
-
Returns the CKConfiguration object associated with current device.
Declaration
Swift
public class var auto: CKConfiguration { get }
-
Returns a new default
CKConfigurationobject.Declaration
Swift
public class var `default`: CKConfiguration { get } -
Returns a new iPhone mode
CKConfigurationobject.Declaration
Swift
public class var iPhone: CKConfiguration { get } -
Returns a new iPad mode
CKConfigurationobject.Declaration
Swift
public class var iPad: CKConfiguration { get } -
Returns a new mac mode
CKConfigurationobject.Declaration
Swift
public class var mac: CKConfiguration { get }
-
The root global parent node name into scene. Default to
scene
. Convention CKScene GuideDeclaration
Swift
public var sceneEntry: String -
The default postion of root global parent node. Default to (0, 0, 0)
Declaration
Swift
public var sceneEntryPosition: SCNVector3
-
Declaration
Swift
public var tdAllowedToMoveCamera: Bool -
Declaration
Swift
public var tdAllowedToTranslateCamera: Bool -
Declaration
Swift
public var tdAllowedToZoomCamera: Bool -
Declaration
Swift
public var tdAllowedToChangeCurrentCameraOnNodeTapped: Bool -
Declaration
Swift
public var tdAllowedToResetCurrentCamera: Bool -
The time interval for camera transition
Declaration
Swift
public var tdCameraTransitionDuration: Double -
The move sensibility divisor. (1: very sensitive ; 5: not very sensitive)
Declaration
Swift
public var tdCameraMoveSensibility: CKFloat { get set } -
The zoom sensibility divisor. (1: very sensitive ; 5: not very sensitive)
Declaration
Swift
public var tdCameraZoomSensibility: CKFloat { get set } -
The scale sensibility divisor. (1: very sensitive ; 5: not very sensitive)
Declaration
Swift
public var tdCameraScaleSensibility: CKFloat { get set } -
The
top/down
sphere andequator
emisphere limit angle in degree.Declaration
Swift
public var tdCameraMoveLimit: CKAngle { get set } -
The
front/back
depth zoom limit in percentage. (0: no zoom available ; 100: can zoom on all available distance)Declaration
Swift
public var tdCameraZoomLimit: CKFloat { get set } -
Declaration
Swift
public var tdTranslateMaxDistance: CKFloat
-
-
Boolean value indicating to CKARCube to allow user to place scene.
-
Boolean value indicating to CKARCube to allow user to translate scene onto surface.
-
Boolean value indicating to CKARCube to allow user to scale scene.
-
Boolean value indicating to CKARCube to allow user to rotate scene onto surface.
-
The default scene scale displayed when CKARCube did place scene.
-
The min and max scale factor limit applied to zoom in CKARCube in percentage.
-
A list of nodes names into scene that will not be inserted into ar cube when *CKARCube did place scene. Default contains
floor
,base
andsupport
.
CKConfiguration Class Reference