Skip to content

Get Sansar

Script API

CameraComponent

Where: Client
More page actions

For the complete documentation index, see llms.txt. This page is also available as Markdown.

Class Namespace Sansar.Simulation Inherits Sansar.Script.InstanceInterface Added in 37.0.0

The CameraComponent handles interactions with cameras.

public class CameraComponent : Sansar.Script.InstanceInterface

Members at a glance

KindMembers
FieldsComponentType
PropertiesComponentId · Name
MethodsToString

Fields

ComponentType

Added in 37.0.0
public static readonly ComponentType ComponentType

The CameraComponent.ComponentType of this component

Properties

ComponentId

Added in 37.0.0
public Sansar.Script.ComponentId ComponentId { get; }

Retrieves the component id for this CameraComponent.

Value: Sansar.Script.ComponentId — The id.

Name

Added in 37.0.0
public string Name { get; }

This CameraComponent name, as specified in the editor.

Methods

ToString

Added in 37.0.0
public override string ToString()

A string representation of this object.

Returns: string — A string representation of this object.

Remarks

The format of this string may change between releases.

Used in examples

Generated from the Sansar 47.10.0 client ScriptApi snapshot.