-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
611 lines (428 loc) · 24.3 KB
/
index.html
File metadata and controls
611 lines (428 loc) · 24.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width">
<meta name="theme-color" content="#222"><meta name="generator" content="Hexo 7.2.0">
<link rel="apple-touch-icon" sizes="180x180" href="/images/apple-touch-icon-next.png">
<link rel="icon" type="image/png" sizes="32x32" href="/images/favicon-32x32-next.png">
<link rel="icon" type="image/png" sizes="16x16" href="/images/favicon-16x16-next.png">
<link rel="mask-icon" href="/images/logo.svg" color="#222">
<link rel="stylesheet" href="/css/main.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.2/css/all.min.css" integrity="sha256-XOqroi11tY4EFQMR9ZYwZWKj5ZXiftSx36RRuC3anlA=" crossorigin="anonymous">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/3.1.1/animate.min.css" integrity="sha256-PR7ttpcvz8qrF57fur/yAx1qXMFJeJFiA6pSzWi0OIE=" crossorigin="anonymous">
<script class="next-config" data-name="main" type="application/json">{"hostname":"example.com","root":"/","images":"/images","scheme":"Pisces","darkmode":false,"version":"8.20.0","exturl":false,"sidebar":{"position":"right","width_expanded":320,"width_dual_column":240,"display":"post","padding":18,"offset":12},"copycode":{"enable":false,"style":null},"fold":{"enable":false,"height":500},"bookmark":{"enable":false,"color":"#222","save":"auto"},"mediumzoom":false,"lazyload":false,"pangu":false,"comments":{"style":"tabs","active":null,"storage":true,"lazyload":false,"nav":null},"stickytabs":false,"motion":{"enable":true,"async":false,"transition":{"menu_item":"fadeInDown","post_block":"fadeIn","post_header":"fadeInDown","post_body":"fadeInDown","coll_header":"fadeInLeft","sidebar":"fadeInUp"}},"i18n":{"placeholder":"Searching...","empty":"We didn't find any results for the search: ${query}","hits_time":"${hits} results found in ${time} ms","hits":"${hits} results found"}}</script><script src="/js/config.js"></script>
<meta name="description" content="Game as a Vocation.">
<meta property="og:type" content="website">
<meta property="og:title" content="王质的 Blog">
<meta property="og:url" content="http://example.com/index.html">
<meta property="og:site_name" content="王质的 Blog">
<meta property="og:description" content="Game as a Vocation.">
<meta property="og:locale" content="en_US">
<meta property="article:author" content="王质 | Wang Zhi">
<meta name="twitter:card" content="summary">
<link rel="canonical" href="http://example.com/">
<script class="next-config" data-name="page" type="application/json">{"sidebar":"","isHome":true,"isPost":false,"lang":"en","comments":"","permalink":"","path":"index.html","title":""}</script>
<script class="next-config" data-name="calendar" type="application/json">""</script>
<title>王质的 Blog</title>
<script async src="https://www.googletagmanager.com/gtag/js?id=G-21H5PKFM3E"></script>
<script class="next-config" data-name="google_analytics" type="application/json">{"tracking_id":"G-21H5PKFM3E","only_pageview":false,"measure_protocol_api_secret":null}</script>
<script src="/js/third-party/analytics/google-analytics.js"></script>
<noscript>
<link rel="stylesheet" href="/css/noscript.css">
</noscript>
</head>
<body itemscope itemtype="http://schema.org/WebPage" class="use-motion">
<div class="headband"></div>
<main class="main">
<div class="column">
<header class="header" itemscope itemtype="http://schema.org/WPHeader"><div class="site-brand-container">
<div class="site-nav-toggle">
<div class="toggle" aria-label="Toggle navigation bar" role="button">
<span class="toggle-line"></span>
<span class="toggle-line"></span>
<span class="toggle-line"></span>
</div>
</div>
<div class="site-meta">
<a href="/" class="brand" rel="start">
<i class="logo-line"></i>
<h1 class="site-title">王质的 Blog</h1>
<i class="logo-line"></i>
</a>
<p class="site-subtitle" itemprop="description">Wang Zhi's Blog</p>
</div>
<div class="site-nav-right">
<div class="toggle popup-trigger" aria-label="Search" role="button">
</div>
</div>
</div>
<nav class="site-nav">
<ul class="main-menu menu"><li class="menu-item menu-item-home"><a href="/" rel="section"><i class="fa fa-home fa-fw"></i>Home</a></li><li class="menu-item menu-item-tags"><a href="/tags/" rel="section"><i class="fa fa-tags fa-fw"></i>Tags</a></li><li class="menu-item menu-item-categories"><a href="/categories/" rel="section"><i class="fa fa-th fa-fw"></i>Categories</a></li><li class="menu-item menu-item-archives"><a href="/archives/" rel="section"><i class="fa fa-archive fa-fw"></i>Archives</a></li>
</ul>
</nav>
</header>
<aside class="sidebar">
<div class="sidebar-inner sidebar-overview-active">
<ul class="sidebar-nav">
<li class="sidebar-nav-toc">
Table of Contents
</li>
<li class="sidebar-nav-overview">
Overview
</li>
</ul>
<div class="sidebar-panel-container">
<!--noindex-->
<div class="post-toc-wrap sidebar-panel">
</div>
<!--/noindex-->
<div class="site-overview-wrap sidebar-panel">
<div class="site-author animated" itemprop="author" itemscope itemtype="http://schema.org/Person">
<img class="site-author-image" itemprop="image" alt="王质 | Wang Zhi"
src="/images/head.png">
<p class="site-author-name" itemprop="name">王质 | Wang Zhi</p>
<div class="site-description" itemprop="description">Game as a Vocation.</div>
</div>
<div class="site-state-wrap animated">
<nav class="site-state">
<div class="site-state-item site-state-posts">
<a href="/archives/">
<span class="site-state-item-count">3</span>
<span class="site-state-item-name">posts</span>
</a>
</div>
<div class="site-state-item site-state-categories">
<a href="/categories/">
<span class="site-state-item-count">1</span>
<span class="site-state-item-name">categories</span></a>
</div>
<div class="site-state-item site-state-tags">
<a href="/tags/">
<span class="site-state-item-count">1</span>
<span class="site-state-item-name">tags</span></a>
</div>
</nav>
</div>
<div class="links-of-author animated">
<span class="links-of-author-item">
<a href="https://x.com/wangzhi4ever" title="Twitter → https://x.com/wangzhi4ever" rel="noopener me" target="_blank"><i class="fab fa-twitter fa-fw"></i>Twitter</a>
</span>
<span class="links-of-author-item">
<a href="https://www.douban.com/people/wangzhi4ever" title="豆瓣 → https://www.douban.com/people/wangzhi4ever" rel="noopener me" target="_blank">豆瓣</a>
</span>
<span class="links-of-author-item">
<a href="mailto:wangzhi4ever@gmail.com" title="E-Mail → mailto:wangzhi4ever@gmail.com" rel="noopener me" target="_blank"><i class="fa fa-envelope fa-fw"></i>E-Mail</a>
</span>
</div>
</div>
</div>
</div>
</aside>
</div>
<div class="main-inner index posts-expand">
<div class="post-block">
<article itemscope itemtype="http://schema.org/Article" class="post-content" lang="">
<link itemprop="mainEntityOfPage" href="http://example.com/posts/59040/">
<span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
<meta itemprop="image" content="/images/head.png">
<meta itemprop="name" content="王质 | Wang Zhi">
</span>
<span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
<meta itemprop="name" content="王质的 Blog">
<meta itemprop="description" content="Game as a Vocation.">
</span>
<span hidden itemprop="post" itemscope itemtype="http://schema.org/CreativeWork">
<meta itemprop="name" content="undefined | 王质的 Blog">
<meta itemprop="description" content="">
</span>
<header class="post-header">
<h2 class="post-title" itemprop="name headline">
<a href="/posts/59040/" class="post-title-link" itemprop="url">在虚幻引擎中的日志系统</a>
</h2>
<div class="post-meta-container">
<div class="post-meta">
<span class="post-meta-item">
<span class="post-meta-item-icon">
<i class="far fa-calendar"></i>
</span>
<span class="post-meta-item-text">Posted on</span>
<time title="Created: 2024-06-14 20:56:58" itemprop="dateCreated datePublished" datetime="2024-06-14T20:56:58+08:00">2024-06-14</time>
</span>
<span class="post-meta-item">
<span class="post-meta-item-icon">
<i class="far fa-calendar-check"></i>
</span>
<span class="post-meta-item-text">Edited on</span>
<time title="Modified: 2024-06-19 12:53:30" itemprop="dateModified" datetime="2024-06-19T12:53:30+08:00">2024-06-19</time>
</span>
<span class="post-meta-item">
<span class="post-meta-item-icon">
<i class="far fa-folder"></i>
</span>
<span class="post-meta-item-text">In</span>
<span itemprop="about" itemscope itemtype="http://schema.org/Thing">
<a href="/categories/%E6%B8%B8%E6%88%8F%E5%BC%80%E5%8F%91/" itemprop="url" rel="index"><span itemprop="name">游戏开发</span></a>
</span>
</span>
<span class="post-meta-item">
<span class="post-meta-item-icon">
<i class="far fa-comment"></i>
</span>
<span class="post-meta-item-text">Disqus: </span>
<a title="disqus" href="/posts/59040/#disqus_thread" itemprop="discussionUrl">
<span class="post-comments-count disqus-comment-count" data-disqus-identifier="posts/59040/" itemprop="commentCount"></span>
</a>
</span>
</div>
</div>
</header>
<div class="post-body" itemprop="articleBody">
<h1 id="译注"><a href="#译注" class="headerlink" title="译注"></a>译注</h1><!-- 原文发表于 Unreal Community Wiki:[Logging](https://unrealcommunity.wiki/logging-lgpidy6i#logging-using-ue_logfmt) -->
<div>
原文发表于 Unreal Community Wiki:<a target="_blank" rel="noopener" href="https://unrealcommunity.wiki/logging-lgpidy6i#logging-using-ue_logfmt">Logging</a>
</div>
<div>
译者:王质:
<a target="_blank" rel="noopener" href="https://x.com/wangzhi4ever" style="border-bottom:none;">
<img alt="Static Badge" src="https://img.shields.io/badge/Twitter-%40wangzhi4ever-%231D9BF0?style=flat&logo=twitter&logoColor=%231D9BF0" style="margin-right:5px;margin-bottom:0px;display:inline;vertical-align:middle;">
</a>
</div>
<p>下载 PDF 版本:<a target="_blank" rel="noopener" href="https://drive.google.com/file/d/1nmVN0E-vBAO7RCVlztv2VTzN19fJt1lu/view?usp=drive_link">Google Drive</a>、<a target="_blank" rel="noopener" href="https://pan.baidu.com/s/1pIS1sbsTpLzp8D1ApYqISw?pwd=wz4e">百度网盘</a></p>
<hr>
<h1 id="关于日志"><a href="#关于日志" class="headerlink" title="关于日志"></a>关于日志</h1><p>日志是对运行时某个时刻的事件、函数调用、变量值等等进行的有序记录,通常以文本格式保存在日志文件中。对于软件开发人员来说,它是一个非常宝贵的工具,特别在调试时,因为它可以提供有关代码在某一时刻正在执行操作的详细信息。例如,可以使用日志来确认某些代码块正在执行、检查函数之间传递的数据以及报告其他潜在的问题。 </p>
<p>虚幻引擎中的日志系统实际上是一个相当复杂的主题,有很多种方法可以打印日志。在本文中,我们将介绍几种打印日志以及与日志进行交互的方法。 </p>
<hr>
<h1 id="使用-UE-LOG-打印日志"><a href="#使用-UE-LOG-打印日志" class="headerlink" title="使用 UE_LOG 打印日志"></a>使用 UE_LOG 打印日志</h1>
<!--noindex-->
<div class="post-button">
<a class="btn" href="/posts/59040/#more" rel="contents">
Read more »
</a>
</div>
<!--/noindex-->
</div>
<footer class="post-footer">
<div class="post-eof"></div>
</footer>
</article>
</div>
<div class="post-block">
<article itemscope itemtype="http://schema.org/Article" class="post-content" lang="">
<link itemprop="mainEntityOfPage" href="http://example.com/posts/48609/">
<span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
<meta itemprop="image" content="/images/head.png">
<meta itemprop="name" content="王质 | Wang Zhi">
</span>
<span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
<meta itemprop="name" content="王质的 Blog">
<meta itemprop="description" content="Game as a Vocation.">
</span>
<span hidden itemprop="post" itemscope itemtype="http://schema.org/CreativeWork">
<meta itemprop="name" content="undefined | 王质的 Blog">
<meta itemprop="description" content="">
</span>
<header class="post-header">
<h2 class="post-title" itemprop="name headline">
<a href="/posts/48609/" class="post-title-link" itemprop="url">虚幻引擎中的 UObject 指针与「智能」指针</a>
</h2>
<div class="post-meta-container">
<div class="post-meta">
<span class="post-meta-item">
<span class="post-meta-item-icon">
<i class="far fa-calendar"></i>
</span>
<span class="post-meta-item-text">Posted on</span>
<time title="Created: 2024-05-24 20:17:09" itemprop="dateCreated datePublished" datetime="2024-05-24T20:17:09+08:00">2024-05-24</time>
</span>
<span class="post-meta-item">
<span class="post-meta-item-icon">
<i class="far fa-calendar-check"></i>
</span>
<span class="post-meta-item-text">Edited on</span>
<time title="Modified: 2024-06-19 12:15:01" itemprop="dateModified" datetime="2024-06-19T12:15:01+08:00">2024-06-19</time>
</span>
<span class="post-meta-item">
<span class="post-meta-item-icon">
<i class="far fa-folder"></i>
</span>
<span class="post-meta-item-text">In</span>
<span itemprop="about" itemscope itemtype="http://schema.org/Thing">
<a href="/categories/%E6%B8%B8%E6%88%8F%E5%BC%80%E5%8F%91/" itemprop="url" rel="index"><span itemprop="name">游戏开发</span></a>
</span>
</span>
<span class="post-meta-item">
<span class="post-meta-item-icon">
<i class="far fa-comment"></i>
</span>
<span class="post-meta-item-text">Disqus: </span>
<a title="disqus" href="/posts/48609/#disqus_thread" itemprop="discussionUrl">
<span class="post-comments-count disqus-comment-count" data-disqus-identifier="posts/48609/" itemprop="commentCount"></span>
</a>
</span>
</div>
</div>
</header>
<div class="post-body" itemprop="articleBody">
<h1 id="译注"><a href="#译注" class="headerlink" title="译注"></a>译注</h1><!-- 原文发表于 Unreal Community Wiki:[Pointer Types](https://unrealcommunity.wiki/pointer-types-m33pysxg) -->
<div>
原文发表于 Unreal Community Wiki:<a target="_blank" rel="noopener" href="https://unrealcommunity.wiki/pointer-types-m33pysxg">Pointer Types</a>
</div>
<div>
译者:王质:
<a target="_blank" rel="noopener" href="https://x.com/wangzhi4ever" style="border-bottom:none;">
<img alt="Static Badge" src="https://img.shields.io/badge/Twitter-%40wangzhi4ever-%231D9BF0?style=flat&logo=twitter&logoColor=%231D9BF0" style="margin-right:5px;margin-bottom:0px;display:inline;vertical-align:middle;">
</a>
</div>
<p>下载 PDF 版本:<a target="_blank" rel="noopener" href="https://drive.google.com/file/d/1YDFM4kPHReg2WtSiKkQH72C2IgCTtsiq/view?usp=sharing">Google Drive</a>、<a target="_blank" rel="noopener" href="https://pan.baidu.com/s/137MMw1ZWGn3-kj9PjAVZQw?pwd=wz4e">百度网盘</a></p>
<hr>
<p>虚幻引擎提供了包含很多不同种类指针的指针库,其中一些指针由虚幻的 RTTI 和垃圾回收系统管理,而另外一些是非托管的,开发人员必须谨慎使用。 </p>
<h1 id="托管指针"><a href="#托管指针" class="headerlink" title="托管指针"></a>托管指针</h1>
<!--noindex-->
<div class="post-button">
<a class="btn" href="/posts/48609/#more" rel="contents">
Read more »
</a>
</div>
<!--/noindex-->
</div>
<footer class="post-footer">
<div class="post-eof"></div>
</footer>
</article>
</div>
<div class="post-block">
<article itemscope itemtype="http://schema.org/Article" class="post-content" lang="">
<link itemprop="mainEntityOfPage" href="http://example.com/posts/49002/">
<span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
<meta itemprop="image" content="/images/head.png">
<meta itemprop="name" content="王质 | Wang Zhi">
</span>
<span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
<meta itemprop="name" content="王质的 Blog">
<meta itemprop="description" content="Game as a Vocation.">
</span>
<span hidden itemprop="post" itemscope itemtype="http://schema.org/CreativeWork">
<meta itemprop="name" content="undefined | 王质的 Blog">
<meta itemprop="description" content="">
</span>
<header class="post-header">
<h2 class="post-title" itemprop="name headline">
<a href="/posts/49002/" class="post-title-link" itemprop="url">关于 Soft Pointer 与 Weak Pointer 的一切</a>
</h2>
<div class="post-meta-container">
<div class="post-meta">
<span class="post-meta-item">
<span class="post-meta-item-icon">
<i class="far fa-calendar"></i>
</span>
<span class="post-meta-item-text">Posted on</span>
<time title="Created: 2024-05-20 18:41:26" itemprop="dateCreated datePublished" datetime="2024-05-20T18:41:26+08:00">2024-05-20</time>
</span>
<span class="post-meta-item">
<span class="post-meta-item-icon">
<i class="far fa-calendar-check"></i>
</span>
<span class="post-meta-item-text">Edited on</span>
<time title="Modified: 2024-06-28 13:06:38" itemprop="dateModified" datetime="2024-06-28T13:06:38+08:00">2024-06-28</time>
</span>
<span class="post-meta-item">
<span class="post-meta-item-icon">
<i class="far fa-folder"></i>
</span>
<span class="post-meta-item-text">In</span>
<span itemprop="about" itemscope itemtype="http://schema.org/Thing">
<a href="/categories/%E6%B8%B8%E6%88%8F%E5%BC%80%E5%8F%91/" itemprop="url" rel="index"><span itemprop="name">游戏开发</span></a>
</span>
</span>
<span class="post-meta-item">
<span class="post-meta-item-icon">
<i class="far fa-comment"></i>
</span>
<span class="post-meta-item-text">Disqus: </span>
<a title="disqus" href="/posts/49002/#disqus_thread" itemprop="discussionUrl">
<span class="post-comments-count disqus-comment-count" data-disqus-identifier="posts/49002/" itemprop="commentCount"></span>
</a>
</span>
</div>
</div>
</header>
<div class="post-body" itemprop="articleBody">
<h1 id="译注"><a href="#译注" class="headerlink" title="译注"></a>译注</h1><div>
原文发表于虚幻引擎官方社区:<a target="_blank" rel="noopener" href="https://dev.epicgames.com/community/learning/tutorials/kx/unreal-engine-all-about-soft-and-weak-pointers">All about Soft and Weak pointers</a>
</div>
<div>
作者:Ari Arnbjörnsson:
<a target="_blank" rel="noopener" href="https://x.com/flassari" style="border-bottom:none;">
<img alt="Static Badge" src="https://img.shields.io/badge/Twitter-%40flassari-%231D9BF0?style=flat&logo=twitter&logoColor=%231D9BF0" style="margin-right:5px;margin-bottom:0px;display:inline;vertical-align:middle;">
</a>
<a target="_blank" rel="noopener" href="https://ari.games" style="border-bottom:none;">
<img alt="Static Badge" src="https://img.shields.io/badge/Blog-ari.games-%234a0308" style="margin-right:5px;margin-bottom:0px;display:inline;vertical-align:middle;">
</a>
</div>
<div>
译者:王质:
<a target="_blank" rel="noopener" href="https://x.com/wangzhi4ever" style="border-bottom:none;">
<img alt="Static Badge" src="https://img.shields.io/badge/Twitter-%40wangzhi4ever-%231D9BF0?style=flat&logo=twitter&logoColor=%231D9BF0" style="margin-right:5px;margin-bottom:0px;display:inline;vertical-align:middle;">
</a>
</div>
<p>下载 PDF 版本:<a target="_blank" rel="noopener" href="https://drive.google.com/file/d/1yR23cyh-tZbTrk1Ils36Mqjvs9_lwsxh/view?usp=sharing">Google Drive</a>、<a target="_blank" rel="noopener" href="https://pan.baidu.com/s/1waM_FsjGlMWe0qCJ_69LTw?pwd=wz4e">百度网盘</a></p>
<hr>
<h1 id="结论"><a href="#结论" class="headerlink" title="结论"></a>结论</h1><p>想先看结论吗?没问题!(下面这些结论的前提是你正在编写 Gameplay 代码而不是在编写编辑器插件。)</p>
<h2 id="✔-使用这些指针类型"><a href="#✔-使用这些指针类型" class="headerlink" title="✔ 使用这些指针类型"></a>✔ 使用这些指针类型</h2><ul>
<li><p><strong>TSoftObjectPtr</strong>: 通过对象的路径来引用对象,这些对象是否被加载是不确定的。可以指向其他关卡中的对象,即使它们还没有被加载。当指向资产(比如 Mesh 网格)时,可以和异步加载函数一起使用,用来临时加载它们。相当于蓝图变量中的 <strong>Soft Object Reference</strong> 类型。</p>
</li>
<li><p><strong>TSoftClassPtr</strong>: 用于引用那些不确定是否会被加载的类或者蓝图类。一旦加载,会给提供一个用于创建实例的类类型。可以和异步加载函数一同使用来加载它们。相当于蓝图变量中的 <strong>Soft Class Reference</strong> 类型。</p>
</li>
<li><p><strong>TWeakObjectPtr</strong>: 用于引用已经被实例化了的对象。如果对象被销毁或被垃圾回收,将会被解析为 null。</p>
</li>
</ul>
<h2 id="❌不要使用这些指针类型"><a href="#❌不要使用这些指针类型" class="headerlink" title="❌不要使用这些指针类型"></a>❌不要使用这些指针类型</h2>
<!--noindex-->
<div class="post-button">
<a class="btn" href="/posts/49002/#more" rel="contents">
Read more »
</a>
</div>
<!--/noindex-->
</div>
<footer class="post-footer">
<div class="post-eof"></div>
</footer>
</article>
</div>
</div>
</main>
<footer class="footer">
<div class="footer-inner">
<div class="copyright">
©
<span itemprop="copyrightYear">2024</span>
<span class="with-love">
<i class="fa fa-heart"></i>
</span>
<span class="author" itemprop="copyrightHolder">王质 | Wang Zhi</span>
</div>
<div class="powered-by">Powered by <a href="https://hexo.io/" rel="noopener" target="_blank">Hexo</a> & <a href="https://theme-next.js.org/pisces/" rel="noopener" target="_blank">NexT.Pisces</a>
</div>
</div>
</footer>
<div class="toggle sidebar-toggle" role="button">
<span class="toggle-line"></span>
<span class="toggle-line"></span>
<span class="toggle-line"></span>
</div>
<div class="sidebar-dimmer"></div>
<div class="back-to-top" role="button" aria-label="Back to top">
<i class="fa fa-arrow-up fa-lg"></i>
<span>0%</span>
</div>
<noscript>
<div class="noscript-warning">Theme NexT works best with JavaScript enabled</div>
</noscript>
<script src="https://cdnjs.cloudflare.com/ajax/libs/animejs/3.2.1/anime.min.js" integrity="sha256-XL2inqUJaslATFnHdJOi9GfQ60on8Wx1C2H8DYiN1xY=" crossorigin="anonymous"></script>
<script src="/js/comments.js"></script><script src="/js/utils.js"></script><script src="/js/motion.js"></script><script src="/js/sidebar.js"></script><script src="/js/next-boot.js"></script>
<script class="next-config" data-name="disqus" type="application/json">{"enable":true,"shortname":"blog-wangzhi","count":true,"i18n":{"disqus":"disqus"}}</script>
<script src="/js/third-party/comments/disqus.js"></script>
</body>
</html>