Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Type:IComponent: Difference between revisions

From Resonite Wiki
989onan (talk | contribs)
m 989onan moved page Types:IComponent to Type:IComponent: Misspelled title: type not types
989onan (talk | contribs)
moved info elsewhere to keep info non redunant
Line 1: Line 1:
IComponent is a component reference interface. Since it is an interface, it only allows interacting with the component in ways that all components can be interacted with. As such, this type can store any [[Component]] reference, no matter what kind of component it is.
IComponent is a [[Type Interface|Interface]] for any [[Component]].
 
This type can be casted into a specific component, and the cast will give this type as the casted component type, provided the component stored in this data type is actually that component. For example, you can't cast the contents of an IComponent reference storing an [[ObjectRoot (Component)|ObjectRoot]] into a [[CopyGlobalTransform (Component)|CopyGlobalTransform]] or it will give null, to name one of many.
[[Category:Type]]
[[Category:Type]]

Revision as of 18:01, 9 February 2024

IComponent is a Interface for any Component.