docs.unity3d.com
Version: 

    Class Component

    A component add behavior to an occurrence

    Base class: Entity

    Derived classes:

    • AnimationComponent
    • CameraComponent
    • ExternalDataComponent
    • JointComponent
    • LODComponent
    • LightComponent
    • Metadata
    • PMIComponent
    • Part
    • ReferencedDataComponent
    • VariantComponent
    classDiagram
        class Component
        Entity <|-- Component
            Component <|-- AnimationComponent
        AnimationComponent : +core.Ident Id
            Component <|-- CameraComponent
        CameraComponent : +core.Ident Id
        CameraComponent : +core.Boolean IsPerspective
        CameraComponent : +core.Real AspectRatio
        CameraComponent : +core.Real Yfov
        CameraComponent : +core.Real Xmag
        CameraComponent : +core.Real Ymag
        CameraComponent : +core.Real Zfar
        CameraComponent : +core.Real Znear
            Component <|-- ExternalDataComponent
            Component <|-- JointComponent
        JointComponent : +core.Ident Id
        JointComponent : +core.Entity Joint
            Component <|-- LODComponent
        LODComponent : +core.Ident Id
            Component <|-- LightComponent
        LightComponent : +core.Ident Id
        LightComponent : +ENUM LightType
        LightComponent : +core.Color Color
        LightComponent : +core.Real Power
        LightComponent : +geom.Angle CutOff
            Component <|-- Metadata
        Metadata : +core.Ident Id
            Component <|-- PMIComponent
        PMIComponent : +core.Ident Id
            Component <|-- Part
        Part : +core.Ident Id
        Part : +core.Entity BRepShapeInitial
        Part : +core.Entity BRepShapeModified
        Part : +core.Entity TessellatedShape
        Part : +geom.Matrix4 Transform
            Component <|-- ReferencedDataComponent
        ReferencedDataComponent : +core.Ident Id
        ReferencedDataComponent : +core.String FilePath
        ReferencedDataComponent : +core.String IdPath
        ReferencedDataComponent : +core.String ParentFilePath
            Component <|-- VariantComponent
        VariantComponent : +core.Ident Id
        VariantComponent : +core.InheritableBool VariantSensitive
        VariantComponent : +core.String GroupName
    

    Functions accepting this type or a list of this type as a parameter:

    • scene.getComponentOccurrence
    • scene.getComponentType
    • scene.setComponentOccurrence
    • scene.getAnnotationGroups
    • view.drawCappingPlane
    • core.cloneEntity
    • core.deleteEntities
    • core.entityExists
    • core.getEntityType
    • core.getEntityTypeString
    • core.addCustomProperties
    • core.addCustomProperty
    • core.getProperties
    • core.getProperty
    • core.getPropertyInfo
    • core.hasCustomProperty
    • core.hasProperty
    • core.listProperties
    • core.listPropertiesBatch
    • core.removeCustomProperty
    • core.setProperties
    • core.setProperty
    • core.supportCustomProperties
    • core.unsetProperty
    • scene.linkPropertyToAnimation
    • scene.unlinkPropertyToAnimation
    Inheritance
    Component
    Namespace: Scene
    Syntax
    Version 2025.2.0.1
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX.