mirror of
https://github.com/godotengine/godot.git
synced 2024-12-11 13:43:07 +00:00
81064cc239
We don't use that info for anything, and it generates unnecessary diffs every time we bump the minor version (and CI failures if we forget to sync some files from opt-in modules (mono, text_server_fb).
21 lines
1.3 KiB
XML
21 lines
1.3 KiB
XML
<?xml version="1.0" encoding="UTF-8" ?>
|
|
<class name="PlaceholderTexture2D" inherits="Texture2D" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../class.xsd">
|
|
<brief_description>
|
|
Placeholder class for a 2-dimensional texture.
|
|
</brief_description>
|
|
<description>
|
|
This class is used when loading a project that uses a [Texture2D] subclass in 2 conditions:
|
|
- When running the project exported in dedicated server mode, only the texture's dimensions are kept (as they may be relied upon for gameplay purposes or positioning of other elements). This allows reducing the exported PCK's size significantly.
|
|
- When this subclass is missing due to using a different engine version or build (e.g. modules disabled).
|
|
[b]Note:[/b] This is not intended to be used as an actual texture for rendering. It is not guaranteed to work like one in shaders or materials (for example when calculating UV).
|
|
</description>
|
|
<tutorials>
|
|
</tutorials>
|
|
<members>
|
|
<member name="resource_local_to_scene" type="bool" setter="set_local_to_scene" getter="is_local_to_scene" overrides="Resource" default="false" />
|
|
<member name="size" type="Vector2" setter="set_size" getter="get_size" default="Vector2(1, 1)">
|
|
The texture's size (in pixels).
|
|
</member>
|
|
</members>
|
|
</class>
|