UnityEditor.Unsupported.DuplicateGameObjectsUsingPasteboard C# (CSharp) Method

DuplicateGameObjectsUsingPasteboard() private method

private DuplicateGameObjectsUsingPasteboard ( ) : void
return void
        public static extern void DuplicateGameObjectsUsingPasteboard();
        [MethodImpl(MethodImplOptions.InternalCall)]

Usage Example

示例#1
0
        internal static void DuplicateGO(Transform fallbackParent)
        {
            CutBoard.Reset();
            bool customParentIsSelected = GetIsCustomParentSelected(fallbackParent);

            Unsupported.DuplicateGameObjectsUsingPasteboard();
            if (customParentIsSelected)
            {
                Selection.activeTransform.SetParent(fallbackParent, true);
            }
        }
All Usage Examples Of UnityEditor.Unsupported::DuplicateGameObjectsUsingPasteboard