UnityEngine.PolygonCollider2D.INTERNAL_CALL_CreatePrimitive C# (CSharp) Method

INTERNAL_CALL_CreatePrimitive() private method

private INTERNAL_CALL_CreatePrimitive ( PolygonCollider2D self, int sides, Vector2 &scale, Vector2 &offset ) : void
self PolygonCollider2D
sides int
scale Vector2
offset Vector2
return void
        private static extern void INTERNAL_CALL_CreatePrimitive(PolygonCollider2D self, int sides, ref Vector2 scale, ref Vector2 offset);
        /// <summary>

Usage Example

コード例 #1
0
        public void CreatePrimitive(int sides)
        {
            Vector2 zero = Vector2.zero;
            Vector2 one  = Vector2.one;

            PolygonCollider2D.INTERNAL_CALL_CreatePrimitive(this, sides, ref one, ref zero);
        }
All Usage Examples Of UnityEngine.PolygonCollider2D::INTERNAL_CALL_CreatePrimitive