Unity里树木房子离庙多远不受影响WindZone 的影响,需要怎么处理

书店排行榜
当前共有:字
提示:分享时会自动附带图书的链接地址与封面图片。
jQuery("#pageDivUser").html("");
bind_UserCommentsList(mtype, pageindex);
jQuery("li[name='tiu']").removeClass("current2");
jQuery("#" + "tab_userli" + mtype).addClass("current2");
function bind_UserCommentsList(mtype,pageindex){ //绑定网店网友评论
var pagesize = 5;
jQuery.getJSON('/AjaxBookNoUser.ashx?___time=' + Math.random(), { ___type: 'Get_CommentsBookUserList', bookid: bookid, mtype: mtype, pageindex: pageindex, pagesize: pagesize }, function (result) {
if (result != "0" && result != "-1") {
var html = "";
jQuery.each(result.list, function (i, item) { //绑定Table 0 地址
1标题 2 源 3 时间
var t = "";
t += "{0} ";
t += "{2}";
t += "{5}{3}";
var ibuy = "未购买用户:";
if(item.isbuy ==1){
ibuy="已购买用户:";}
t = t.format(item.title,item.guid,item.comcontent,item.username,item.comdate,ibuy);
jQuery("#book_usercm_list").html(html);
if (result.page.icount > pagesize){ //绑定分页
bind_pager(mtype, pageindex, result.page.pcount,'bind_UserCommentsList','pageDivUser');
jQuery("#book_usercm_list").html("暂时没有书评信息。");
function set_CommentsTab(mtype, pageindex) {
jQuery(".book_comms_tab").html("正在加载中请稍后...");
jQuery("#pageDiv").html("");
bind_CommentsList(mtype, pageindex);
jQuery("li[name='ti']").removeClass("current2");
jQuery("#" + "tab_li" + mtype).addClass("current2");
function bind_CommentsList(mtype, pageindex) {//绑定书评
var pagesize = 15;
jQuery.getJSON('/AjaxBookNoUser.ashx?___time=' + Math.random(), { ___type: 'Get_CommentsInfoLits', bookid: bookid, mtype: mtype, pageindex: pageindex, pagesize: pagesize }, function (result) {
if (result != "0" && result != "-1") {
var html = "";
jQuery.each(result.list, function (i, item) { //绑定Table 0 地址
1标题 2 源 3 时间
var t = "{2}{3}";
t = t.format("/bookview/" + bookid + "/" + item.PubYear + "/" + item.GUID, item.Title, item.Source, item.PubDate.split(' ')[0]);
jQuery(".book_comms_tab").html(html);
if (result.page.icount > pagesize){ //绑定分页
bind_pager(mtype, pageindex, result.page.pcount,"bind_CommentsList","pageDiv");
jQuery(".book_comms_tab").html("暂时没有书评信息。");
function bind_pager(m, p, c,f,d) {//分页 m-type p-index c-count f-function d-control
var phmb = "&"
var ph = "";
var pi = parseInt(p);
var ci = parseInt(c);
var first = ((pi - 1) == 0) ? 0 : (pi - 1);
if (first > 0) {
if (c > 8) { ph += phmb.format("", m, 1, "首页",f); }
ph += phmb.format("", m, first, "上一页",f);
for (var j = ((pi - 4) > 1) ? (pi - 4) : 1; (j <= ci) && (j
1) ? (pi - 4) : 1) + 8)); j++) {
if (j == pi) {
ph += phmb.format("class=\"aspNetDisabled\"", m, j, j,f);
ph += phmb.format("", m, j, j,f);
var last = ((pi + 1) > ci) ? (ci + 1) : (pi + 1);
8) { ph += phmb.format("", m, ci, "尾页",f); }
jQuery("#"+d).html(ph);扫一扫,访问微社区
后使用快捷导航没有帐号?
签到成功!您今天第{todayrank}个签到,签到排名竞争激烈,记得每天都来签到哦!已连续签到:{constant}天,累计签到:{days}天
当前位置: & &
活动内容收起
当你们投放广告的时候,VPN突然掉线拉???假期还得苦逼守着电脑刷数据??广告智能优化工具Adorado(剑鱼)让你的问题go die ...
哪位大神知道Unity怎么接入地图并且要准确定位啊(我只要发布PC端的就行),或者有这样的插件也行 之前的谷歌地图的插件好像商城下架了不让 ...
游戏蛮牛(北京)诚聘HTML5手游技术布道师
岗位职责:
1.& && &&&负责对接手游H5开发者,对其提 ...
四度科技的3D(VR)虚拟工厂就是指在3D(VR)虚拟空间的虚拟现实工厂把输入变换为输出的生产功能仿真(模拟实验、模拟现实)的全部行为。 ...
Epic Games的《堡垒之夜(Fornite)》手游不仅吸量,而且吸金。据数据分析公司Sensor Tower的最新数据显示,该游戏iOS累计营收已经达到2500 ...拒绝访问 | www.ggdoc.com | 百度云加速
请打开cookies.
此网站 (www.ggdoc.com) 的管理员禁止了您的访问。原因是您的访问包含了非浏览器特征(40ddf-ua98).
重新安装浏览器,或使用别的浏览器Wind Zone要怎么用啊【unity3d吧】_百度贴吧
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&签到排名:今日本吧第个签到,本吧因你更精彩,明天继续来努力!
本吧签到人数:0成为超级会员,使用一键签到本月漏签0次!成为超级会员,赠送8张补签卡连续签到:天&&累计签到:天超级会员单次开通12个月以上,赠送连续签到卡3张
关注:85,280贴子:
Wind Zone要怎么用啊收藏
给地形添加windzone
comment还是给树添加windzone
comment还是在场景中添加windzone
gameobj。。。为什么我试了这3个,树都没动啊啊啊啊。windzone comment 里的数据求解释
火星学习unity3d,编程师就业薪资20k起,毕业=高薪就业,unity3d0基础学习,半年即可入职一线游戏/互联网公司,火星终身免费推荐就业.
windzone的行为与平行光一模一样
能体现风的方向大小的,Unity中只有树和草了,在地形编辑中双击一种树,设置扭曲值,为1就行!
登录百度帐号获取不到unity中WindZone组件?
如题,GetCompent获取不到unity中WindZone组件?我用的是4.0版本,有哪位知道是啥原因
要评论请先&或者&
windzone 是GameObject ,用FindGameObject查找
:windzone 是GameObject ,用FindGameObject查找 你好,我查找到了windzone,请问如何通过代码修改windzone的属性值呀,比如Mode、Radius等
直接贴代码
ScriptableWindzoneInterface.cs
using UnityE
using System.C
using System.R
// Provides a scriptable interface to a windzone
/* Change Log
&* 05/25/11 Created by Nividica
&* & & & & &As Unity provides no way to access a windzone via
&* & & & & & & &script, I am digging around in the reflections
&* & & & & & & &to pull out its memeber information and write
&* & & & & & & &getter and setter methods.
&* & & & & &Finished writing the get/set methods for everything
&* & & & & & & &except the Mode.
public class ScriptableWindzoneInterface : MonoBehaviour { &
&& &// Private vars ===================================
&& &// The windzone component
&& &private Component m_WindzoneC
&& &// The system qualified type of the windzone
&& &private System.Type m_WindzoneT
&& &// Used to pass an argument to WindZone setter functions
&& &object[] m_WindZoneArgs = new object[1] ;
&& &// Public properties ==============================
&& &// `radius`
&& &public float Radius {
&& & & &get
&& & & & & &// Return the value of `radius`
&& & & & & &return (float)GetWindZoneValue( &get_radius& ) ;
&& & & &set
&& & & & & &// Set the argument
&& & & & & &m_WindZoneArgs[0] =
&& & & & & &
&& & & & & &// Set the value of `windMain`
&& & & & & &SetWindZoneValue( &set_radius& , m_WindZoneArgs ) ;
&& &// `windMain`
&& &public float WindMain {
&& & & &get
&& & & & & &// Return the value of `windMain`
&& & & & & &return (float)GetWindZoneValue( &get_windMain& ) ;
&& & & &set
&& & & & & &// Set the argument
&& & & & & &m_WindZoneArgs[0] =
&& & & & & &
&& & & & & &// Set the value of `windMain`
&& & & & & &SetWindZoneValue( &set_windMain& , m_WindZoneArgs ) ;
&& &// `windTurbulence`
&& &public float WindTurbulence {
&& & & &get
&& & & & & &// Return the value of `windTurbulence`
&& & & & & &return (float)GetWindZoneValue( &get_windTurbulence& ) ;
&& & & &set
&& & & & & &// Set the argument
&& & & & & &m_WindZoneArgs[0] =
&& & & & & &
&& & & & & &// Set the value of `windTurbulence`
&& & & & & &SetWindZoneValue( &set_windTurbulence& , m_WindZoneArgs ) ;
&& &// `windPulseMagnitude`
&& &public float WindPulseMagnitude {
&& & & &get
&& & & & & &// Return the value of `windPulseMagnitude`
&& & & & & &return (float)GetWindZoneValue( &get_windPulseMagnitude& ) ;
&& & & &set
&& & & & & &// Set the argument
&& & & & & &m_WindZoneArgs[0] =
&& & & & & &
&& & & & & &// Set the value of `windPulseMagnitude`
&& & & & & &SetWindZoneValue( &set_windPulseMagnitude& , m_WindZoneArgs ) ;
&& &// `windPulseFrequency`
&& &public float WindPulseFrequency {
&& & & &get
&& & & & & &// Return the value of `windPulseFrequency`
&& & & & & &return (float)GetWindZoneValue( &get_windPulseFrequency& ) ;
&& & & &set
&& & & & & &// Set the argument
&& & & & & &m_WindZoneArgs[0] =
&& & & & & &
&& & & & & &// Set the value of `windPulseMagnitude`
&& & & & & &SetWindZoneValue( &set_windPulseFrequency& , m_WindZoneArgs ) ;
&& &// Public functions ===============================
&& &// Find and link against the windzone
&& &public void Init () {
&& & & &// Get the windzone of this game object
&& & & &m_WindzoneComponent = GetComponent(&WindZone&);
&& & & &// Ensure there was a windzone to link to
&& & & &if ( m_WindzoneComponent == null ) {
&& & & & & &// Log the error
&& & & & & &Debug.LogError( &Could not find a wind zone to link to: & + this ) ;
&& & & & & &
&& & & & & &// Disable this script for the remainder of the run
&& & & & & &this.enabled =
&& & & & & &
&& & & & & &// Stop here
&& & & & & &
&& & & &// Get the system qualified type
&& & & &m_WindzoneType = m_WindzoneComponent.GetType() ;
&& &// Private functions =============================
&& &// Set a WindZone property value
&& &void SetWindZoneValue ( string MemberName , object[] args ){
&& & & &// Call the setter
&& & & &m_WindzoneType.InvokeMember(
&& & & & & & & & & & & & & & & & & &MemberName ,
&& & & & & & & & & & & & & & & & & &BindingFlags.InvokeMethod | BindingFlags.Instance ,
&& & & & & & & & & & & & & & & & & &null ,
&& & & & & & & & & & & & & & & & & &m_WindzoneComponent ,
&& & & & & & & & & & & & & & & & & &args ) ;
&& &// Get a WindZone property value
&& &object GetWindZoneValue ( string MemberName ){
&& & & &// Call the getter
&& & & &return m_WindzoneType.InvokeMember(
&& & & & & & & & & & & & & & & & & & & & & MemberName ,
&& & & & & & & & & & & & & & & & & & & & & BindingFlags.InvokeMethod | BindingFlags.Instance ,
&& & & & & & & & & & & & & & & & & & & & & null ,
&& & & & & & & & & & & & & & & & & & & & & m_WindzoneComponent ,
&& & & & & & & & & & & & & & & & & & & & & null ) ;
测试脚本WindzoneController.cs
using UnityE
using System.C
// Allows Control Over WindZone Component
// Note: The WindZone & This Script Must Be Attached To The Same Game Object
public class WindzoneController : ScriptableWindzoneInterface {
&& &// Use this for initialization
&& &void Start () {
&& & & &// Tell the ScriptableWindzoneInterface to initialize
&& & & &base.Init() ;
&& & & &// Example: Log the current settings
// & & & &Debug.Log( &The Starting Settings Of The Windzone Are: Main=& + WindMain
//
// & & & & & & & & &+ &, Turbulence=& + WindTurbulence
//
// & & & & & & & & &+ &, Pulse Magnitude=& + WindPulseMagnitude
//
// & & & & & & & & &+ &, Pulse Frequency=& + WindPulseFrequency ) ;
public void SetWind(float force,int angle)
WindMain =
transform.rotation = Quaternion.Euler(transform.rotation.x,angle,transform.rotation.z);
}
&& &// Update is called once per frame
// & &void Update () {
//
// & & & &
//
// & & & &// Example: Setting each of the values
//
// & & & &WindMain = Mathf.PingPong( ( Time.time / 2.0F ) , 1.0F ) ;
//
// & & & &WindTurbulence = WindM
//
// & & & &WindPulseMagnitude = WindM
//
// & & & &WindPulseFrequency = WindM
//
// & & & &Radius = WindM
//
// & &}
:直接贴代码
ScriptableWindzoneInterface.cs
using UnityE
using System.C
using System.R
&... 你好,首先感谢你的代码分享。我把这两个脚本加到同一个物体上,并创建windzone组件,但是一直提示获取不到。请问你是怎么解决的?谢谢!
这个我没有碰到,你直接创建一个风区,然后再讲这两个脚本加上去看看,我用的是4.0版本,没有遇到类似问题,还有你可以到官方论坛上找下原帖看能不能帮到你
:这个我没有碰到,你直接创建一个风区,然后再讲这两个脚本加上去看看,我用的是4.0版本,没有遇到类似问题,还有你可以到官方论坛上找下原帖看能不能帮到你 你好,问题解决了。通过add component添加风区就行了。我之前是将风区添加到场景中了。
:你好,问题解决了。通过add component添加风区就行了。我之前是将风区添加到场景中了。 恩,这样的话,我想应该是脚本执行顺序的原因
:恩,这样的话,我想应该是脚本执行顺序的原因 你好,我想问一下。我给自己建的物体添加这两段脚本和windzone没有风吹效果,但是可以设置windzone属性值。如果我用笔刷刷到地形上,有风吹效果,但是windzone属性值控制不了。你当初是怎么做的?有遇到这个问题吗?谢谢!

我要回帖

更多关于 不受寒潮影响的地区 的文章

 

随机推荐