One Logo Pool Ball
SceneKit · IOS API REFERENCE

SCNScene

class · SDK 27.1

class SCNScene

Members (32)

init

init

TypeScript
static initNamed(name: string): (SCNScene) | null
Swift declaration
convenience init?(named name: String)
init

init

TypeScript
static initNamedInDirectoryOptions(name: string, directory?: (string) | null, options?: (NativeMap<SCNSceneSource_LoadingOption, unknown>) | null): (SCNScene) | null
Swift declaration
convenience init?(named name: String, inDirectory directory: String?, options: [SCNSceneSource.LoadingOption : Any]? = nil)
init

init

TypeScript
static initUrlOptions(url: string, options?: (NativeMap<SCNSceneSource_LoadingOption, unknown>) | null): SCNScene
Swift declaration
convenience init(url: URL, options: [SCNSceneSource.LoadingOption : Any]? = nil) throws
method

addParticleSystem

TypeScript
addParticleSystem(system: SCNParticleSystem, transform: SCNMatrix4): void
Swift declaration
func addParticleSystem(_ system: SCNParticleSystem, transform: SCNMatrix4)
method

attribute

TypeScript
attribute(key: string): (unknown) | null
Swift declaration
func attribute(forKey key: String) -> Any?
method

removeAllParticleSystems

TypeScript
removeAllParticleSystems(): void
Swift declaration
func removeAllParticleSystems()
method

removeParticleSystem

TypeScript
removeParticleSystem(system: SCNParticleSystem): void
Swift declaration
func removeParticleSystem(_ system: SCNParticleSystem)
method

setAttribute

TypeScript
setAttribute(attribute: (unknown) | null, key: string): void
Swift declaration
func setAttribute(_ attribute: Any?, forKey key: String)
method · iOS 10.0+

write

TypeScript
write(url: string, options?: (Record<string, unknown>) | null, delegate?: (Implements<SCNSceneExportDelegate> | SDKHandle) | null, progressHandler?: (((arg0: number, arg1: (NativeError) | null, arg2: NativeOut<boolean>) => void)) | null): boolean
Swift declaration
func write(to url: URL, options: [String : Any]? = nil, delegate: (any SCNSceneExportDelegate)?, progressHandler: SCNSceneExportProgressHandler? = nil) -> Bool
get

background

TypeScript
get background(): SCNMaterialProperty
Swift declaration
var background: SCNMaterialProperty { get }
get

fogColor

TypeScript
get fogColor(): unknown
Swift declaration
var fogColor: Any { get set }
set

fogColor

TypeScript
set fogColor(value: unknown)
Swift declaration
var fogColor: Any { get set }
get

fogDensityExponent

TypeScript
get fogDensityExponent(): number
Swift declaration
var fogDensityExponent: CGFloat { get set }
set

fogDensityExponent

TypeScript
set fogDensityExponent(value: number)
Swift declaration
var fogDensityExponent: CGFloat { get set }
get

fogEndDistance

TypeScript
get fogEndDistance(): number
Swift declaration
var fogEndDistance: CGFloat { get set }
set

fogEndDistance

TypeScript
set fogEndDistance(value: number)
Swift declaration
var fogEndDistance: CGFloat { get set }
get

fogStartDistance

TypeScript
get fogStartDistance(): number
Swift declaration
var fogStartDistance: CGFloat { get set }
set

fogStartDistance

TypeScript
set fogStartDistance(value: number)
Swift declaration
var fogStartDistance: CGFloat { get set }
get · iOS 10.0+

lightingEnvironment

TypeScript
get lightingEnvironment(): SCNMaterialProperty
Swift declaration
var lightingEnvironment: SCNMaterialProperty { get }
get

particleSystems

TypeScript
get particleSystems(): (Array<SCNParticleSystem>) | null
Swift declaration
var particleSystems: [SCNParticleSystem]? { get }
get

isPaused

TypeScript
get isPaused(): boolean
Swift declaration
var isPaused: Bool { get set }
set

isPaused

TypeScript
set isPaused(value: boolean)
Swift declaration
var isPaused: Bool { get set }
get

physicsWorld

TypeScript
get physicsWorld(): SCNPhysicsWorld
Swift declaration
var physicsWorld: SCNPhysicsWorld { get }
get

rootNode

TypeScript
get rootNode(): SCNNode
Swift declaration
var rootNode: SCNNode { get }
get · iOS 13.0+

screenSpaceReflectionMaximumDistance

TypeScript
get screenSpaceReflectionMaximumDistance(): number
Swift declaration
var screenSpaceReflectionMaximumDistance: CGFloat { get set }
set · iOS 13.0+

screenSpaceReflectionMaximumDistance

TypeScript
set screenSpaceReflectionMaximumDistance(value: number)
Swift declaration
var screenSpaceReflectionMaximumDistance: CGFloat { get set }
get · iOS 13.0+

screenSpaceReflectionSampleCount

TypeScript
get screenSpaceReflectionSampleCount(): number
Swift declaration
var screenSpaceReflectionSampleCount: Int { get set }
set · iOS 13.0+

screenSpaceReflectionSampleCount

TypeScript
set screenSpaceReflectionSampleCount(value: number)
Swift declaration
var screenSpaceReflectionSampleCount: Int { get set }
get · iOS 13.0+

screenSpaceReflectionStride

TypeScript
get screenSpaceReflectionStride(): number
Swift declaration
var screenSpaceReflectionStride: CGFloat { get set }
set · iOS 13.0+

screenSpaceReflectionStride

TypeScript
set screenSpaceReflectionStride(value: number)
Swift declaration
var screenSpaceReflectionStride: CGFloat { get set }
get · iOS 13.0+

wantsScreenSpaceReflection

TypeScript
get wantsScreenSpaceReflection(): boolean
Swift declaration
var wantsScreenSpaceReflection: Bool { get set }
set · iOS 13.0+

wantsScreenSpaceReflection

TypeScript
set wantsScreenSpaceReflection(value: boolean)
Swift declaration
var wantsScreenSpaceReflection: Bool { get set }

Skipped declarations

1 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.

SCNScene.init()

inherited init: cannot prove legal (class declares 4 custom initializers)

All SceneKit types →