pub struct Tilemap {Show 16 fields
pub m_AnimatedTiles: Vec<(int3_storage, TileAnimationData)>,
pub m_AnimationFrameRate: f32,
pub m_Color: ColorRGBA,
pub m_Enabled: u8,
pub m_GameObject: PPtr,
pub m_Origin: int3_storage,
pub m_Size: int3_storage,
pub m_TileAnchor: Vector3f,
pub m_TileAssetArray: Vec<TilemapRefCountedData>,
pub m_TileColorArray: Vec<TilemapRefCountedData>,
pub m_TileMatrixArray: Vec<TilemapRefCountedData>,
pub m_TileOrientation: i32,
pub m_TileOrientationMatrix: Matrix4x4f,
pub m_TileSpriteArray: Vec<TilemapRefCountedData>,
pub m_Tiles: Vec<(int3_storage, Tile)>,
pub m_TileObjectToInstantiateArray: Option<Vec<TilemapRefCountedData>>,
}
Expand description
Tilemap is a class of the Unity engine since version 2017.2.0b2. Exert from Unity’s scripting documentation: The Tilemap stores Sprites in a layout marked by a Grid component.
Fields§
§m_AnimatedTiles: Vec<(int3_storage, TileAnimationData)>
§m_AnimationFrameRate: f32
The frame rate for all Tile animations in the Tilemap.
m_Color: ColorRGBA
The color of the Tilemap layer.
m_Enabled: u8
Enabled Behaviours are Updated, disabled Behaviours are not.
m_GameObject: PPtr
The game object this component is attached to. A component is always attached to a game object.
PPtr<GameObject
>: (2017.2.0b2 - 2022.3.2f1)
m_Origin: int3_storage
The origin of the Tilemap in cell position.
m_Size: int3_storage
The size of the Tilemap in cells.
m_TileAnchor: Vector3f
Gets the anchor point of Tiles in the Tilemap.
m_TileAssetArray: Vec<TilemapRefCountedData>
§m_TileColorArray: Vec<TilemapRefCountedData>
§m_TileMatrixArray: Vec<TilemapRefCountedData>
§m_TileOrientation: i32
§m_TileOrientationMatrix: Matrix4x4f
§m_TileSpriteArray: Vec<TilemapRefCountedData>
§m_Tiles: Vec<(int3_storage, Tile)>
§m_TileObjectToInstantiateArray: Option<Vec<TilemapRefCountedData>>
Vec
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Tilemap
impl<'de> Deserialize<'de> for Tilemap
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Tilemap
impl RefUnwindSafe for Tilemap
impl Send for Tilemap
impl Sync for Tilemap
impl Unpin for Tilemap
impl UnwindSafe for Tilemap
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more