Difference between revisions of "Object:type (日本語)"
(New translation (Based revision : 1 August 2015, at 15:19)) |
m |
||
Line 24: | Line 24: | ||
[[Category:Functions]] | [[Category:Functions]] | ||
== そのほかの言語 == | == そのほかの言語 == | ||
− | {{i18n|Object:type}} | + | {{i18n (日本語)|Object:type}} |
Revision as of 07:47, 6 June 2019
オブジェクトの種類を文字列形式で取得します。
関数
概要
type = Object:type()
引数
なし。
返値
string type
- 種類を文字列形式で返します。
用例
オブジェクトの種類を表示します。
image = love.graphics.newImage("test.png")
print(image:type()) -- 出力: Image
source = love.audio.newSource("test.ogg")
print(source:type()) -- 出力: Source