Gt3nfFormduplicate componett.cab是啥东西

版权所有 京ICP备号-2
迷上了代码!Attributes属性属于U3D的RunTimeClass,所以加上以下的命名空间是必须的了。其它倒没什么需要注意的。本文将所有运行属性过一遍罢了。
想看更详细的
using UnityE
using System.C
1. [AddComponentMenu] 添加组件菜单
这函数只是起方便用,原本的脚本(组建)都会在“Component/Script”菜单下,在类之前声明一下这个,它便可以出现在”Componet”菜单下的任何位置。说明指的是要重启U3D才能显示,不过测试貌似直接可以显示。
[AddComponentMenu("MyPhysic/PhysicType")]
public class PhysicType: MonoBehaviour
2. [ContextMenu] 上下文菜单
这个译名我觉得很不自然,其实上下文算是啥东西……这个函数是在Inspector的脚本中加一个触发事件,就是删除脚本重置脚本按钮的那个小拉菜单中,具体很难说清位置,所以我截了个图.
public class Attributes : MonoBehaviour {
[ContextMenu("Hello World!")]
void HelloWorld()
Debug.Log("Hello World!");
Unity3d中的属性(Attributes)整理
3. ExecuteInEditMode 在Editor模式下运行
跟名字一样,在编辑器中运行。不过有三种函数的调用方式。
a-"Update()" is only called when something in the scene changed.**
b- "OnGUI()" is called when the Game View recieves an Event.
c- "OnRenderObject()" and the other rendering callback functions are called on every repaint of the Scene View or Game View.
[ExecuteInEditMode]
public class ExecuteInEditModeTest: MonoBehaviour{
private Vector3 vec_Rotation = new Vector3(0.0f, 0.5f, 0.0f);
//Rotate all the time
void OnRenderObject()
transform.Rotate(vec_Rotation);
4. HideInInspector 在检视面板中隐藏
public class HideInspectorTest : MonoBehaviour
[HideInInspector]
public Transform m_T
void Start()
m_Target = GameObject.Find("test").
5. RequireComponent 必须要有相应的组建
加入一个组建之前必须存在另一个相应的组建,若没有则自动创建。这个在项目中非常有必要用到,尤其是项目人员比较多的时候(大于三四个)。
[RequireComponent (typeof (Rigidbody))]
public class RequireComponentTest : MonoBehaviour {
void FixedUpdate()
rigidbody.AddForce(Vector3.up);
6. NonSerialized 不被序列化
不被序列化该变量,且不显示在检视面板中。
public class Test {
[System.NonSerialized]
public int i_Helloword = 5;
7. Serializable 可序列化
这个属性可以让子类(继承类)的变量属性显示在检视面板中,也能序列化它。(JS的话完全不需要这个属性。)
//SerializableTest.cs
[System.Serializable]
public class SerializableTest
public int p = 5;
public Color c = Color.
//SerializableTest2.cs
public class SerializableTest2 : MonoBehaviour
public SerializableT
8. SerializeField 序列化域(强制序列化)
这里写得比较清楚,可以将私有变量序列化,将U3D的内建变量序列化等。
9.下面的ATTRIBUTE属性估计是没什么人用的了,我也没怎么用过。
ImageEffectOpaque 不透明图像效果优先
*Any Image Effect with this attribute will be rendered after opaque geometry but before transparent geometry.
This allows for effects which extensively use the depth buffer (SSAO ect) to only affect opaque pixels. This Attribute can be used to reduce the amount of visual artifacts in a scene with post processing.*
没用过这玩意,不过应该很少用得到,优化加速渲染。
ImageEffectTransformsToLDR
也没用过这玩意,LDR应该是某种加载方式。高动态光照渲染(High-Dynamic Range,简称HDR)。
*When using HDR rendering it can sometime be desirable to switch to LDR rendering during ImageEffect rendering.
Using this Attribute on an image effect will cause the destination buffer to be an LDR buffer, and switch the rest of the Image Effect pipeline into LDR mode. It is the responsibility of the Image Effect that this Attribute is associated to ensure that the output is in the LDR range.*
NotConvertedAttribute 不转换属性
我觉得这个应该是没有人用的……打包资源的时候,不将成员或类型转换到相应平台,不是很理解这是干嘛的。
Instructs the build pipeline not to convert a type or member to the target platform.
NotFlashValidatedAttribute 不允许转换到FLASH平台
又是个没人用的东西吧?
Instructs the build pipeline not to try and validate a type or member for the flash platform.
NotRenamedAttribute 不允许属性更名
PropertyAttribute 财产属性?搞不懂
也不知道用来做啥的。
这个貌似跟NETWORK相关,U3D的NETWORK渣渣,不管了。
版权声明:本文为博主原创文章,未经博主允许不得转载。
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
访问:29396次
排名:千里之外
原创:19篇
转载:57篇
(5)(9)(1)(2)(2)(6)(9)(3)(2)(1)(2)(5)(6)(1)(2)(7)(6)(1)(1)(7)vb.net webbrowser 怎样读取网页中的 object ocx 表格内容_百度知道
vb.net webbrowser 怎样读取网页中的 object ocx 表格内容
具体代码如下:public static string FilterScript(string content){if(content==null || content==&&){}string regexstr=@&(?i)&script([^&])*&(\w|\W)*&/script([^&])*&&;//@&&script.*&/script&&;content=Regex.Replace(content,regexstr,string.Empty,RegexOptions.IgnoreCase);content=Regex.Replace(content,&&script([^&])*&&,string.Empty,RegexOptions.IgnoreCase);return Regex.Replace(content,&&/script&&,string.Empty,RegexOptions.IgnoreCase);}
其他类似问题
为您推荐:
提问者采纳
object 里面的内容和flash里面的文字一样,用Webbrowser是获取不出来的,这个一直是Webbbrowser无法穿胆扁感壮啡憋拾铂浆破解的难题;把你的网址贴出来看看
谢谢回答!请问还有其他方法吗?
还用vb.net
网址只有用户登陆后才能看到
看看你要截取的内容复杂不复杂,你把你要截取的内容截图上来,如果内容不多的话考虑屏幕截图方法
图片传上来,请问Q
Q? ocx 是一张财务报表,数据几十个的。
百度知道回答的时候有上传图片的功能
提问者评价
来自团队:
webbrowser的相关知识
等待您来回答
下载知道APP
随时随地咨询
出门在外也不愁

我要回帖

更多关于 太岁是什么东西 的文章

 

随机推荐