CFrameValue
非推奨を表示
*このコンテンツは、ベータ版のAI(人工知能)を使用して翻訳されており、エラーが含まれている可能性があります。このページを英語で表示するには、 こちら をクリックしてください。
単一の CFrame 値のコンテナオブジェクト。
コードサンプル
This code sample creates a CFrameValue whose Value is set to the camera's current CFrame. This CFrame can be later recalled back into the camera's CFrame.
Store the Camera's CFrame
-- Create a CFrame that stores the camera's current position/orientation
local vSnapshot = Instance.new("CFrameValue")
vSnapshot.Value = workspace.CurrentCamera.CFrame
vSnapshot.Name = "Snapshot"
vSnapshot.Parent = workspace
-- Later, we can load the CFrame back into the camera
workspace.CurrentCamera.CFrame = vSnapshot.Value
概要
イベント
CFRAmeValue の CFrameValue.Value が変更されるたびに発射されます。
プロパティ
Value
方法
イベント
Changed
パラメータ
コードサンプル
CFRam値が変更されました。Changed
local cframeValue = script.Parent.CFrameValue
cframeValue.Changed:Connect(print)
cframeValue.Value = CFrame.new(1, 2, 3)