Scaleform Studio Lua API Reference: scaleform.Component object reference
The root type of all actor components.
This element is inherited by:
Parameters Returns string |
The name of the component.
|
Parameters self : | scaleform.Component |
The component whose property is retrieved.
|
propName : | string |
The property name of the component.
|
Returns any |
The value of the property that may be a string, number, handle, or table depending on the property type.
|
Parameters Returns | This function does not return any values. |
Parameters self : | scaleform.Component |
The component whose property is set.
|
propValue : | table |
A table of string value pairs for all properties
|
Returns boolean |
Returns true if all of the properties were set.
|
Parameters self : | scaleform.Component |
The component whose property is set.
|
propName : | string |
The property name of the component.
|
propValue : | any |
The value of the property.
|
Returns boolean |
Returns true if the property was set.
|
Parameters Returns string |
The type of the component.
|
scaleform.CameraComponent
An interface to camera component.
scaleform.PhysicsBodyComponent
Describes a Actor's physical properties.
scaleform.PhysicsWorldComponent
Drives the Physics simulation of all child objects that have physical properties
scaleform.ScriptComponent
An interface to script component.
scaleform.SoundComponent
An interface to sound component for Wwise audio.
scaleform.VisualComponent
An interface to the visual component.
scaleform.BitmapComponent
An interface to bitmap component.
scaleform.ContainerComponent
An interface to container component.
scaleform.AnimationComponent
Controls a timeline animation
scaleform.ShapeComponent
An interface to shape component.
scaleform.SpriteComponent
Represents a sprite object.
scaleform.TextComponent
Represent the text field.
scaleform.Actor.component_by_index (self, index) : scaleform.Component
Returns the component of this actor at the given index.
scaleform.Actor.component_by_name (self, name) : scaleform.Component
Returns the component with the given name.
scaleform.Actor.add_component (self, comp)
Adds a component to this actor.
scaleform.Actor.remove_component (self, comp) : boolean
Removes a component from this actor.
scaleform.Component.name (self) : string
Gets the name of the component.
self : scaleform.Component
The component to get the name of.
string
The name of the component.
scaleform.Component
The root type of all actor components.
A string of characters.
scaleform.Component.owner (self) : scaleform.Actor
Returns the Actor that has this component installed
self : scaleform.Component
The component to get the owner of.
scaleform.Actor
The owner of the actor or nil if there is not one.
scaleform.Actor
Generic objects located in a scene.
scaleform.Component.property (self, propName) : any
Gets the property value of the component.
self : scaleform.Component
The component whose property is retrieved.
propName : string
The property name of the component.
any
The value of the property that may be a string, number, handle, or table depending on the property type.This value may be an instance of any type.
scaleform.Component.set_name (self, name)
Sets the name of the component.
self : scaleform.Component
The component to set the name of.
name : string
The name to use.
scaleform.Component.set_properties (self, propValue) : boolean
Sets the property values of the component.
self : scaleform.Component
The component whose property is set.
propValue : table
A table of string value pairs for all properties
booleanA Lua table consisting of paired keys and values.true or false.
scaleform.Component.set_property (self, propName, propValue) : boolean
Sets the property value of the component.
self : scaleform.Component
The component whose property is set.
propName : string
The property name of the component.
propValue : any
The value of the property.
boolean
scaleform.Component.type (self) : string
Returns the type of the component.
self : scaleform.Component
The component to get the type of.
string
The type of the component.
self : scaleform.Actor
The actor whose component is retrieved.
index : integer
The index into the component list from 1 to number of components.
scaleform.Component
The specified component.
self : scaleform.Actor
The actor whose component is retrieved.
name : string
The name of the component of this actor.
scaleform.Component
The specified component of the actor.
self : scaleform.Actor
The actor to which a component is added.
comp : scaleform.Component
The component to add.
self : scaleform.Actor
The actor whose component is removed.
comp : scaleform.Component
The component to remove.
booleanA strictly integral numeric value, with no decimal component.Indicates a table.
This documentation uses the term table to mean an anonymous, temporary Lua table that contains named data values. You typically use these tables to pass data or settings to a function, or to hold data returned by a function.Indicates an object.
This documentation uses the term object to mean a named Lua table or userdata value that maintains a state. Some object types may have multiple instances existing at the same time, each with its own state; these objects typically have creation functions or accessors that you must call in order to get an instance. Some object types have only one instance, which you always access through the object's name.Indicates a named variable within a namespace, object or table; or an element within an enumeration.Indicates a code sample.Indicates an enumeration.
This documentation uses the term enumeration to mean a named Lua table that contains only a set of constant values. These values typically identify a predefined set of options for some setting or behavior. You might pass an enumeration value to a function, or test the value returned by a function against the items in the enumeration to see which option is currently set.Indicates a named variable within a namespace or object that has a pre-set constant value.Indicates a category: a semantic grouping of related API elements.Indicates a namespace.
This documentation uses the term namespace to mean a named Lua table that exists in only one single instance, intended as a container for an interface of related objects, functions and data variables.Indicates an output value returned by a function.Indicates a named function within a namespace or object.Indicates an input parameter for a function.