Skip to main content
Roblox property에 대한 scriptable override를 scriptable override cache에 저장하고 previous scriptable state를 반환합니다. 첫 번째 인수는 Instance object여야 하고, 두 번째 인수는 string property name이어야 하며, 세 번째 인수는 boolean이어야 합니다. 같은 instance reference와 property name에 대한 cache entry가 이미 있으면 cached scriptable value가 교체되고 이전 cached value가 반환됩니다. cache miss이면 property name을 Roblox property metadata 및 Instance class descriptor로 해석합니다. descriptor가 없거나 해석된 field가 없거나 property entry가 아니면 function은 nil을 반환합니다. property entry를 찾으면 function은 scriptable state을 읽고 요청된 boolean과 property reference를 scriptable override cache에 저장한 뒤 previous scriptable state value를 반환합니다. GameIndexHook 및 GameNewIndexHook은 나중에 이 cache를 사용하여 단일 indexed read 또는 write 동안 property field scriptable flag를 임시로 설정한 뒤 previous field flag를 복원합니다.

문법

인수

반환값

예제

Temporarily change whether a property is scriptable, then restore the previous state when available.