Skip to main content

IPolygonCollider2DMethods

Trait IPolygonCollider2DMethods 

Source
pub trait IPolygonCollider2DMethods: IPolygonCollider2D {
    // Provided methods
    fn get_total_point_count(self) -> i32 { ... }
    fn get_path_count(self) -> i32 { ... }
    fn get_path(self, index: impl Into<i32>) -> Array<Vector2> { ... }
    fn get_path_internal(self, index: impl Into<i32>) -> Array<Vector2> { ... }
}

Provided Methods§

Source

fn get_total_point_count(self) -> i32

GetTotalPointCount() overload

Source

fn get_path_count(self) -> i32

get_pathCount() overload

Source

fn get_path(self, index: impl Into<i32>) -> Array<Vector2>

GetPath(i32) overload

Source

fn get_path_internal(self, index: impl Into<i32>) -> Array<Vector2>

GetPath_Internal(i32) overload

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<__T: IPolygonCollider2D> IPolygonCollider2DMethods for __T

Available on crate feature unity_engine-polygoncollider2d only.