Files

24 lines
2.2 KiB
Plaintext
Raw Permalink Normal View History

INTSourceChangelist:3108692
Availability:Public
Title:모듈 API 지정자
Crumbs:%ROOT%, Programming
Description:클래스와 함수를 다른 모듈에 노출시키는 방법입니다.
version: 4.9
이 지정자에 대해 가장 쉽게 생각해 볼 수 있는 방법은, 함수나 클래스나 데이터를 자기 모듈 DLL 파일에 "공용"(public)인 것으로 태그를 다는 데 사용하는 것입니다. Engine 모듈에 있는 함수를 ENGINE_API 로 마킹을 한다면, Engine 을 임포트하는 모듈은 그 함수에 직접 접근할 수 있게 됩니다.
Copying //UE4/Dev-Documentation to //UE4/Samples-Main (Source: //UE4/Dev-Documentation @ 4321946) #lockdown Nick.Penwarden #rb none ============================ MAJOR FEATURES & CHANGES ============================ Change 3683933 by Jeff.Wilson Updated metadata Change 4094604 by Richard.Hinckley Fixing a bug in Match3 with incorrect attempts at unbinding a delegate. Not as much of a code problem as a bad learning example. #jira UE-59621 Change 4099126 by Sungjin.Hong #loc UE4DocKOR Change 4105127 by Sungjin.Hong removed wrong [include] Change 4105128 by Sungjin.Hong #loc UE4DocKor Change 4169203 by Sungjin.Hong #loc UE4DocKOR Change 4201118 by Mitchell.Wilson Initial check-in of 4.20 Release Notes - Major features only. Change 4201313 by Jeff.Wilson misc fixes Change 4201319 by Mitchell.Wilson Adding 4.20 minor release notes. Change 4201528 by Jeff.Wilson misc fixes Change 4216361 by Sungjin.Hong #loc UE4DocKOR moved or deleted Change 4216416 by Sungjin.Hong #loc UE4DocKOR Change 4216563 by Sungjin.Hong #loc UE4DocKOR Change 4217772 by Mitchell.Wilson Adding some missing minor release notes in the Slate and UMG sections. Change 4218292 by Mitchell.Wilson Commenting out Shotgun documentation link and adding a "coming soon" blurb Change 4219358 by Tianmin.Xie #loc UE4DocCHN moved or deleted Change 4219564 by Sungjin.Hong #loc UE4DocKOR Change 4220008 by Jeff.Wilson Reordered top features; updated language for Niagara Change 4220814 by Mitchell.Wilson Updating Niagara landing page and adding new image. Change 4220945 by Mitchell.Wilson Updating page with note pointing to digital humans page and added related page link for digital humans Change 4221079 by Mitchell.Wilson Submitting page and images for Working With Tracks In Sequencer. Change 4221223 by Mitchell.Wilson Checking in updates to Sequence Recorder page and new images. Change 4222174 by Yang.Zhang #loc UE4DocCHN check in 420 Release Note againest INT verison 4218292 (need update againest for latest release note) Change 4222188 by Sungjin.Hong #loc UE4DocKOR moved or deleted Change 4222189 by Yang.Zhang #loc UE4DocCHN 420 Release Note Update against INT 4220008 Change 4222217 by Tianmin.Xie #loc UE4DocCHN moved or deleted Change 4222310 by Yang.Zhang #loc UE4DocCHN 420 Release Note Typo Fixing against INT 4220008 Change 4222335 by Yang.Zhang #loc UE4DocCHN TwinblastBust Update against INT 4220945 Change 4222348 by Yang.Zhang #loc UE4DocCHN SequenceRecorder Update against INT 3866572 Change 4222355 by Yang.Zhang #loc UE4DocCHN SequenceRecorder Update against INT 3244012 Change 4222371 by Yang.Zhang #loc UE4DocCHN Change 4222713 by Sungjin.Hong #loc UE4DocKOR Change 4223218 by Mitchell.Wilson Adding Controlling Anim Instances with Sequencer page and images Change 4223330 by Mitchell.Wilson Minor update to formatting. Change 4223439 by Mitchell.Wilson Submitting new TimeRefactorNotes page and images Change 4224395 by Sungjin.Hong #loc UE4DocKOR moved or deleted Change 4224481 by Yang.Zhang #loc UE4DocCHN 419 Release Note Update against INT 3941748 Change 4224497 by Yang.Zhang #loc UE4DocCHN moved or deleted Change 4228591 by Yang.Zhang #loc UE4DocCHN Localization Edit Against 4221079 Change 4228596 by Yang.Zhang #loc UE4DocCHN Change 4228598 by Yang.Zhang #loc UE4DocCHN Localization Bug Fixing Change 4228600 by Yang.Zhang #loc UE4DocCHN Localization Edit Change 4233224 by Yang.Zhang #loc UE4DocCHN Localization Bug Fixing Change 4233437 by Sungjin.Hong #loc UE4DocKOR Change 4233440 by Sungjin.Hong #loc UE4DocKOR Change 4240164 by Sungjin.Hong #loc UE4DocKOR Change 4242799 by Yang.Zhang #loc UE4DocCHN Localization Editor Change 4243822 by Sam.Deiter Manually moveing these files over from the 4.20 release branch. Change 4257108 by Ben.Zeigler Switch ActionRPG to use IWYU headers Change 4257489 by Sungjin.Hong #loc UE4DocKor Change 4258770 by Mitchell.Wilson Updating filters page and images with 4.20 changes Change 4258956 by Mitchell.Wilson Updating Color Picker doc and images for 4.20 Change 4261325 by Sungjin.Hong #loc UE4DocKOR Change 4261534 by Mitchell.Wilson Updating mobilepreviewer doc for 4.20 changes. Change 4263566 by Robert.Gervais Replacing images to address doc-md tool erros. #UE4Doc #fyi Jeff.Wilson, Mitchell.Wilson Change 4264102 by Yang.Zhang #loc UE4DocCHN Localization Edit Change 4264104 by Yang.Zhang #loc UE4DocCHN Localization Edit Change 4264120 by Yang.Zhang #loc UE4DocCHN Localization Bug Fixing Change 4264799 by paulo.souza Fix ActionRPG main menu logo "action" and "sample" labels were misplaced #fyi sam.deiter #rb none Change 4267571 by Sungjin.Hong #loc UE4DocKOR Change 4268090 by Sungjin.Hong #loc UE4DocKOR Change 4272340 by Mitchell.Wilson Adding all MR pages for 4.20 Change 4273092 by Mitchell.Wilson Updating Mesh Details page for 4.20 Change 4276731 by Mitchell.Wilson Checking in nDisplay doc. Change 4276770 by Jeff.Wilson Updated formatting Change 4276798 by Jeff.Wilson Minor formatting update Change 4276998 by Mitchell.Wilson Checking in nDisplay changes for 4.20 Change 4278693 by Sungjin.Hong #loc UE4DocKOR moved or deleted Change 4279407 by Mitchell.Wilson Adding ScriptingAndAutomation folder and content Change 4279418 by Mitchell.Wilson Updating crumbs Change 4279440 by Mitchell.Wilson Adding INT to file. Change 4280273 by paulo.souza ARPG - Player AI can now use Potions and Skills when possible/necessary Change 4280342 by Mitchell.Wilson Adding blueprint/python switchable content. Change 4282437 by Yang.Zhang #loc UE4DocCHN moved or deleted Change 4282603 by Yang.Zhang Outsourcing 20180814 Change 4282681 by Yang.Zhang #loc UE4DocCHN English Update Change 4282721 by Yang.Zhang #loc UE4DocCHN Localization Editor 20180807 Change 4282938 by Sungjin.Hong #loc UE4DocKOR Change 4283510 by paulo.souza ARPG - Initial support for consumable items (health and mana potions) Change 4283679 by Mitchell.Wilson Submitting updates to some ScriptingAndAutomation pages and adding HowTos sections. Change 4283941 by Mitchell.Wilson Submitting new page and content Change 4284256 by Mitchell.Wilson Minor updates to fix topic lists Change 4284421 by Mitchell.Wilson Checking in python page and content Change 4284468 by Mitchell.Wilson Minor updates. Change 4284888 by Mitchell.Wilson Adding new page and content Change 4285161 by Mitchell.Wilson Adding new page and content Change 4285387 by Jeff.Wilson minor styling updates Change 4287470 by Mitchell.Wilson Adding new page and content Change 4291477 by Sungjin.Hong #loc UE4DocKOR moved or deleted Change 4291478 by Sungjin.Hong #loc UE4DocKOR Change 4291995 by Sungjin.Hong #loc UE4DocKOR Change 4292193 by Mitchell.Wilson Updating page and content Change 4292827 by Mitchell.Wilson adding digital humans page and content Change 4293098 by Mitchell.Wilson Updating CascadeToNiagara and adding some content Change 4295473 by Sungjin.Hong #loc UE4DocKOR moved or deleted Change 4295612 by Sungjin.Hong #loc UE4DocKOR Change 4295997 by Sungjin.Hong #loc UE4DocKOR Change 4296011 by Sungjin.Hong #loc UE4DocKOR Change 4296954 by Mitchell.Wilson Fixing LODs on one mesh to resolve flicker. Rebuilt lighting #jira UE-58995 Change 4297342 by Mitchell.Wilson Updating copyright text in Match3 credits #jira UE-61819 Change 4298354 by Mitchell.Wilson Updating Photorealistic Character Bust eye material to be consistent with Content Examples setup. #jira UE-59761 Change 4299738 by Yang.Zhang #loc UE4DocCHN moved or deleted Change 4299936 by Sungjin.Hong #loc UE4DocKOR Change 4300185 by Mitchell.Wilson Updating page to 4.20 Change 4300194 by Mitchell.Wilson Updating page and one image Change 4300247 by Jeff.Wilson Fixed publishing errors Change 4300533 by Jeff.Wilson Updates for publishing Change 4300884 by Mitchell.Wilson Updating page and content Change 4301216 by Mitchell.Wilson Updating page and content Change 4301268 by Mitchell.Wilson Updating page and content Change 4301301 by Mitchell.Wilson Updating page and content Change 4302195 by Mitchell.Wilson Updating page and adding content Change 4303253 by Yang.Zhang #loc UE4DocCHN Localization Edit 20180414 Change 4303325 by Sungjin.Hong #loc UE4DocKOR Change 4303706 by Sungjin.Hong #loc UE4DocKOR Change 4305335 by Mitchell.Wilson Fixing errors on pages in prep for publish Change 4305416 by Mitchell.Wilson Removing Graph Panel section to resolve errors since it was already commented out. Change 4305436 by Mitchell.Wilson Removing graph panel from commented section to resolve errors Change 4305504 by Mitchell.Wilson Fixing up an image to resolve errors Change 4305576 by Mitchell.Wilson Updated graph panel link to new location. Change 4305778 by Mitchell.Wilson Fixing broken comment Change 4306900 by Sungjin.Hong #loc UE4DocKOR Change 4307010 by Mitchell.Wilson Updating this page to resolve issues on another Change 4307038 by Mitchell.Wilson Removing missing image references, but leaving the descriptions if they ever need to be added back. images are commented out. Change 4307067 by Mitchell.Wilson Removing outdated note to resolve errors. Change 4307073 by Mitchell.Wilson Removing old link that was commented out to resolve errors Change 4307105 by Mitchell.Wilson Removing old image that is no longer used in the new CMS Change 4307127 by Mitchell.Wilson Fixing up comment and removing section that is not used to resolve errors Change 4307254 by Mitchell.Wilson Removing some old URL references that were already commented out to resolve errors. Change 4307277 by Mitchell.Wilson Fixing up incorrect link to resolve errors Change 4307289 by Mitchell.Wilson Fixing up incorrect URL to resovle errors Change 4307291 by Mitchell.Wilson Updating URL for a page that was moved. Change 4307670 by Mitchell.Wilson Fixing up multiple issues to resolve errors Change 4308120 by Mitchell.Wilson Fixing up comments to resolve errors Change 4308165 by Mitchell.Wilson Removing old commented section to resolve errors Change 4308189 by Mitchell.Wilson Removing commented out related pages section to resolve errors. Change 4308942 by Mitchell.Wilson Removing topic image link to resolve error Change 4309000 by Mitchell.Wilson Fixing up some typos in images to resolve errors Change 4309042 by Mitchell.Wilson Fixing up old URL to resolve errors Change 4309060 by Mitchell.Wilson Updating URLs to resolve crashing Change 4309073 by Mitchell.Wilson Updating URLs to resolve crash Change 4309085 by Mitchell.Wilson Removing old URL located in a comment to resolve error Change 4309106 by Mitchell.Wilson Updating related pages to resolve errors Change 4309130 by Mitchell.Wilson Fixing topic image to resolve error Change 4309167 by Mitchell.Wilson Remove include to resolve errors Change 4309172 by Mitchell.Wilson Removing include to resolve errors Change 4309183 by Mitchell.Wilson Fixing up table to resolve error Change 4309189 by Mitchell.Wilson Removing old image to resolve errors Change 4310574 by Sungjin.Hong #loc UE4DocKOR Change 4310769 by Sungjin.Hong #loc UE4DocKOR Change 4311446 by Mitchell.Wilson Adding missing image file Change 4312754 by Jeff.Wilson Added new DoF pages and updates Change 4313881 by Sungjin.Hong #loc UE4DocKOR moved or deleted Change 4313999 by Yang.Zhang #loc UE4DocCHN moved or deleted Change 4314037 by Sungjin.Hong corrected some links, tags, and spaces Change 4314071 by Sungjin.Hong #loc UE4DocKOR Change 4314302 by Sungjin.Hong #loc UE4DocKOR Change 4314504 by Mitchell.Wilson Adding missing tutorial image and updating tutorial. #jira UEDOC-7229 Change 4317861 by Sungjin.Hong #loc ?????? -> ?????? Change 4320148 by Mitchell.Wilson Removing comments on topics Change 4320159 by Jeff.Wilson Fixed async gifs Change 4320499 by Mitchell.Wilson Checking in topic images Change 4321330 by Sungjin.Hong #loc UE4DocKOR Change 4321337 by Yang.Zhang Outsourcing 20180821 Change 4321362 by Yang.Zhang #loc UE4DocCHN Localization Bug Fixing 2080828 [CL 4322126 by Mitchell Wilson in Main branch]
2018-08-28 10:33:31 -04:00
이러한 방법은 엔진을 "모듈식"(modular) 모드(데스크톱 플랫폼에서의 DLL 파일)로 컴파일할 때만 사용됩니다. 이와 반대되는 방법은 소위 "모노리식"(monolithic) 모드로, 모든 코드를 하나의 실행파일 안에 몰아넣는 것을 말합니다. 빌드 유형은 UnrealBuildTool 세팅 및/또는 플랫폼과 빌드 환경설정에 따라 제어됩니다.
실제 API 매크로는 UBT 가 코드를 컴파일하는 방식에 따라 다음 중 하나에 해당합니다:
* "모듈식" 모드로 모듈 코드를 컴파일할 때는 `__declspec( dllexport )`.
* 임포트중인 모듈에 대한 공용 모듈 헤더를 포함할 때는 `__declspec( dllimport )`.
* "모노리식" 모드로 컴파일할 때는 공란.
API 매크로는 다른 모듈에서 정적으로 임포트되는 모듈에 대해서만 의미가 있습니다. Core 모듈이 좋은 예제입니다. UE4 의 거의 모든 모듈은 *.Build.cs 파일에 "Core" 를 임포트 종속성으로 지정합니다.
다수의 모듈은 절대 정적으로 임포트될 일이 없습니다 (예로 "SceneOutliner" 모듈). 그러한 모듈을 가리켜 동적으로 로드되는 모듈이라 합니다. 동적으로 로드되는 모듈이 엄청난 것은 (일종의 플러그인처럼) 시동시 발견되고, 종종 즉시 리로드 가능하기 때문입니다.
API 매크로가 사용되는 곳은 대부분, 이전 코드에서 새로운 모듈이 그 DLL 에서 코드에 접근하고자 할 때입니다. 새로운 코드에서는 API 매크로가 훨씬 적게 사용되며, 그 대신 DLL 경계를 넘나들며 함수성을 노출시키는 이쁜 인터페이스 레이어를 셋업합니다.