中文亚洲精品无码_熟女乱子伦免费_人人超碰人人爱国产_亚洲熟妇女综合网

當(dāng)前位置: 首頁 > news >正文

網(wǎng)站縮放代碼無安全警告的瀏覽器

網(wǎng)站縮放代碼,無安全警告的瀏覽器,創(chuàng)意合肥網(wǎng)站建設(shè),網(wǎng)站建設(shè)方案書 下載ComponentSystem&#xff1a;僅支持主線程執(zhí)行&#xff0c;不支持多線程&#xff0c;并且無法使用SystemBase介紹的擴展方法。 using Unity.Entities; using Unity.Transforms; using Unity.Mathematics;/// <summary> /// 僅主線程執(zhí)行&#xff0c;不支持多線程 /// &l…

?ComponentSystem:僅支持主線程執(zhí)行,不支持多線程,并且無法使用SystemBase介紹的擴展方法。

using Unity.Entities;
using Unity.Transforms;
using Unity.Mathematics;/// <summary>
/// 僅主線程執(zhí)行,不支持多線程
/// </summary>
public class MyComponentSystem : ComponentSystem
{protected override void OnUpdate(){Entities.ForEach((ref Translation trans) =>{trans.Value = new float3(0, 1, 1);});//無法使用SystemBase的其他擴展功能}
}

JobComponentSystem:僅支持多線程,不支持主線程,可以使用擴展方法,并且重寫的方法與其他都不同,它需要一個JobHandle返回值?

using Unity.Entities;
using Unity.Jobs;
using Unity.Transforms;
/// <summary>
/// 支持多線程 但不支持主線程執(zhí)行
/// </summary>
public class MyJobComponentSystem : JobComponentSystem
{protected override JobHandle OnUpdate(JobHandle inputDeps){return Entities.ForEach((ref Translation trans) =>{trans.Value = new Unity.Mathematics.float3(0, 0, 1);}).WithName("MyName").Schedule(inputDeps);//可以使用SystemBase擴展方法}
}

具體文檔:Using Entities.ForEach | Entities | 0.50.1-preview.2

如下圖是三個執(zhí)行篩選的方法限制,簡單理解就是:
Run:非Burst編譯下 可訪問所有成員,可修改實體?!局骶€程執(zhí)行】
Schedule:僅能獲取局部成員,可修改實體?!拘麻_一個后臺線程執(zhí)行】
ScheduleParallel:僅能獲取局部成員,可以讀取實體,但不能修改實體,并且可讀數(shù)據(jù)只允許存儲到WithReadOnly(xxx)方法標記的只讀變量內(nèi)?!径嗑€程并行執(zhí)行】

Supported FeatureRunScheduleScheduleParallel
Capture local value typexxx
Capture local reference typex (only WithoutBurst and not in ISystem)
Writing to captured variablesx
Use field on the system classx (only WithoutBurst)
Methods on reference typesx (only WithoutBurst and not in ISystem)
Shared Componentsx (only WithoutBurst and not in ISystem)
Managed Componentsx (only WithoutBurst and not in ISystem)
Structural changesx (only WithStructuralChanges and not in ISystem)
SystemBase.GetComponentxxx
SystemBase.SetComponentxx
GetComponentDataFromEntityxxx (only as ReadOnly)
HasComponentxxx
WithDisposeOnCompletionxxx
WithScheduleGranularityx
http://www.risenshineclean.com/news/5345.html

相關(guān)文章:

  • 萊蕪網(wǎng)站優(yōu)化平臺軟文廣告案例500字
  • 網(wǎng)站后臺統(tǒng)計代碼網(wǎng)站怎么seo關(guān)鍵詞排名優(yōu)化推廣
  • 勻貴網(wǎng)站建設(shè)seo自媒體運營技巧
  • 游戲開發(fā)比網(wǎng)站開發(fā)強強seo博客
  • 建設(shè)互聯(lián)網(wǎng)站機房需要哪些設(shè)備外包網(wǎng)絡(luò)推廣營銷
  • 新問網(wǎng)站設(shè)計發(fā)外鏈軟件
  • 不需要備案如何做網(wǎng)站汽車軟文廣告
  • 阿里云云主機做網(wǎng)站簡述網(wǎng)絡(luò)營銷的特點
  • 蘋果官網(wǎng)入口河南網(wǎng)站關(guān)鍵詞優(yōu)化代理
  • 惠州公司做網(wǎng)站營銷模式和營銷策略
  • 廣州網(wǎng)站開發(fā)哪家強泉州百度首頁優(yōu)化
  • 網(wǎng)頁開發(fā)的流程青島百度seo
  • 自己做的網(wǎng)站二維碼怎么做的中國百強縣市榜單
  • 建網(wǎng)站空間互聯(lián)網(wǎng)推廣方案
  • dw做的網(wǎng)站seo的最終是為了達到
  • 購物網(wǎng)站建設(shè)規(guī)劃書seo網(wǎng)站診斷分析報告
  • 網(wǎng)站制作好以后怎么管理網(wǎng)站外鏈是什么意思
  • 青島快速網(wǎng)站排名小程序商城制作一個需要多少錢
  • 漣源網(wǎng)站建設(shè)網(wǎng)絡(luò)推廣加盟
  • 煙臺優(yōu)化網(wǎng)站建設(shè)長沙seo招聘
  • wordpress關(guān)閉自動更新seo診斷分析在線工具
  • 外貿(mào)網(wǎng)站建設(shè)公司流程推廣產(chǎn)品的軟文
  • php動態(tài)網(wǎng)站開發(fā)唐四薪課后答案長春網(wǎng)站制作推廣
  • 深圳企業(yè)網(wǎng)站建設(shè)服務(wù)平臺中國有幾個搜索引擎
  • 個人網(wǎng)頁可以做什么內(nèi)容seo網(wǎng)站優(yōu)化方案書
  • 紹興h5建站我想注冊一個網(wǎng)站怎么注冊
  • 無經(jīng)驗做網(wǎng)站今日軍事新聞最新消息新聞
  • java環(huán)境網(wǎng)站整站建設(shè)要怎么網(wǎng)絡(luò)做推廣
  • 專業(yè)的建網(wǎng)站的公司廣州seo網(wǎng)站推廣公司
  • 網(wǎng)站建設(shè)方案選公司十大電商代運營公司