查看: 2319|回复: 1
打印 上一主题 下一主题

unity3d物体阵列复制小扩展

[复制链接]

1602

主题

1

听众

2万

积分

资深设计师

Rank: 7Rank: 7Rank: 7

纳金币
24658
精华
6

最佳新人 活跃会员 热心会员 灌水之王 突出贡献

跳转到指定楼层
楼主
发表于 2012-3-21 12:45:14 |只看该作者 |倒序浏览
很实用的一个小扩展,可以实现场景中物体的阵列功能!

This is a simple, but effective, tool for creating repeating formations of objects. For those familiar with Blender, this essentially implements the array modifier via an editor script: 'startTransform' is used to set the starting location, and the current object is used to modify this with each instantiation of the given object, 'obj' - up to a set count. Like blender, this is all rebuilt in realtime via OnSceneGUI(), and some pretty cool stuff can be done with this once arrays of arrays of objects are created...
  

Anyways, I expect that this should be a welcome boon to anyone building platform, arcade, or any other type of game that uses repeated placements of pickups/obstacles and the like. More creative uses also probably exist - let me know if you make anything cool with it
Edit: Note - Object handles must be set from 'center' to 'pivot' for this to work correctly



点击下载
分享到: QQ好友和群QQ好友和群 腾讯微博腾讯微博 腾讯朋友腾讯朋友 微信微信
转播转播0 分享淘帖0 收藏收藏0 支持支持0 反对反对0
回复

使用道具 举报

may    

8830

主题

81

听众

7万

积分

首席设计师

Rank: 8Rank: 8

纳金币
52352
精华
343

最佳新人 热心会员 灌水之王 活跃会员 突出贡献 荣誉管理 论坛元老

沙发
发表于 2013-4-28 20:18:57 |只看该作者
找不到下载位置?
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

手机版|纳金网 ( 闽ICP备2021016425号-2/3

GMT+8, 2025-8-3 04:38 , Processed in 0.072002 second(s), 28 queries .

Powered by Discuz!-创意设计 X2.5

© 2008-2019 Narkii Inc.

回顶部