SCNNodeGameplayKit

Trait SCNNodeGameplayKit 

Source
pub unsafe trait SCNNodeGameplayKit:
    ClassType
    + Sized
    + Sealed {
    // Provided methods
    unsafe fn entity(&self) -> Option<Retained<GKEntity>> { ... }
    unsafe fn setEntity(&self, entity: Option<&GKEntity>) { ... }
}
Available on crate feature SceneKit_Additions only.
Expand description

Category “GameplayKit” on SCNNode.

Provided Methods§

Source

unsafe fn entity(&self) -> Option<Retained<GKEntity>>

Available on crate feature GKEntity only.

The GKEntity associated with the node via a GKSCNNodeComponent.

See: GKEntity

Source

unsafe fn setEntity(&self, entity: Option<&GKEntity>)

Available on crate feature GKEntity only.

Setter for entity.

This is a weak property.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl SCNNodeGameplayKit for SCNNode

Available on crate feature objc2-scene-kit only.

Implementors§