Skip to main content

Space

The coordinate space in which to operate. Unity Space.

Elements

ElementDescription
Space.SelfApplies transformation relative to the local coordinate system.
Space.WorldApplies transformation relative to the world coordinate system.

Example

do
local script = LUA.script;
local transform = script.gameObject.transform;

function script.Start()
transform.Rotate(Vector3.up * m_Speed * Time.deltaTime, Space.World);
end
end